function SessionStreamWrapper::unlink
Same name in other branches
- 3.x modules/stream_wrapper_example/src/StreamWrapper/SessionStreamWrapper.php \Drupal\stream_wrapper_example\StreamWrapper\SessionStreamWrapper::unlink()
- 8.x-1.x stream_wrapper_example/src/StreamWrapper/SessionStreamWrapper.php \Drupal\stream_wrapper_example\StreamWrapper\SessionStreamWrapper::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/en/streamwrapper.unlink.php
File
-
modules/
stream_wrapper_example/ src/ StreamWrapper/ SessionStreamWrapper.php, line 606
Class
- SessionStreamWrapper
- Example stream wrapper class to handle session:// streams.
Namespace
Drupal\stream_wrapper_example\StreamWrapperCode
public function unlink($uri) {
$path = $this->getLocalPath($uri);
$this->sessionHelper
->clearPath($path);
return TRUE;
}