public function SessionStreamWrapper::stream_stat in Examples for Developers 3.x
Same name and namespace in other branches
- 8 stream_wrapper_example/src/StreamWrapper/SessionStreamWrapper.php \Drupal\stream_wrapper_example\StreamWrapper\SessionStreamWrapper::stream_stat()
Retrieve information about a file resource.
This method is called in response to fstat().
Return value
array|false See stat().
Overrides PhpStreamWrapperInterface::stream_stat
See also
stat()
PhpStreamWrapperInterface::url_stat()
http://php.net/manual/en/streamwrapper.stream-stat.php
File
- modules/
stream_wrapper_example/ src/ StreamWrapper/ SessionStreamWrapper.php, line 573
Class
- SessionStreamWrapper
- Example stream wrapper class to handle session:// streams.
Namespace
Drupal\stream_wrapper_example\StreamWrapperCode
public function stream_stat() {
// @codingStandardsIgnoreEnd
return [
'size' => strlen($this->sessionContent),
];
}