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

1 method overrides LocalStream::unlink()
LocalReadOnlyStream::unlink in drupal/core/lib/Drupal/Core/StreamWrapper/LocalReadOnlyStream.php
Support for unlink().

File

drupal/core/lib/Drupal/Core/StreamWrapper/LocalStream.php, line 368
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());
}