public function S3fsStream::stream_write in S3 File System 8.2
Support for fwrite(), file_put_contents() etc.
Parameters
string $data: The data to be written to the stream.
Return value
int The number of bytes actually written to the stream.
Overrides PhpStreamWrapperInterface::stream_write
See also
http://php.net/manual/en/streamwrapper.stream-write.php
File
- src/
StreamWrapper/ S3fsStream.php, line 620
Class
- S3fsStream
- Defines a Drupal s3fs (s3fs://) stream wrapper class.
Namespace
Drupal\s3fs\StreamWrapperCode
public function stream_write($data) {
$bytes = strlen($data);
$this
->_debug("stream_write() called with {$bytes} bytes of data for {$this->uri}.");
return $this->body
->write($data);
}