public function LocalStream::unlink

Support for unlink().

Parameters

string $uri: A string containing the URI to the resource to delete.

Return value

bool TRUE if resource was successfully deleted.

Overrides PhpStreamWrapperInterface::unlink

See also

http://php.net/manual/streamwrapper.unlink.php

File

drupal/core/lib/Drupal/Core/StreamWrapper/LocalStream.php, line 352
Definition of Drupal\Core\StreamWrapper\LocalStream.

Class

LocalStream
Defines a Drupal stream wrapper base class for local files.

Namespace

Drupal\Core\StreamWrapper

Code

public function unlink($uri) {
  $this->uri = $uri;
  return drupal_unlink($this
    ->getLocalPath());
}