public function LocalStream::stream_write in System stream wrapper 8
Support for fwrite(), file_put_contents() etc.
Parameters
string $data: The string to be written.
Return value
int The number of bytes written.
Overrides PhpStreamWrapperInterface::stream_write
See also
http://php.net/manual/streamwrapper.stream-write.php
1 method overrides LocalStream::stream_write()
- LocalReadOnlyStream::stream_write in src/
StreamWrapper/ LocalReadOnlyStream.php - Support for fwrite(), file_put_contents() etc.
File
- src/
StreamWrapper/ LocalStream.php, line 166
Class
- LocalStream
- Defines a Drupal stream wrapper base class for local files.
Namespace
Drupal\system_stream_wrapper\StreamWrapperCode
public function stream_write($data) {
return fwrite($this->handle, $data);
}