function ReadOnlyStream::stream_flush
Same name in other branches
- 9 core/lib/Drupal/Core/StreamWrapper/ReadOnlyStream.php \Drupal\Core\StreamWrapper\ReadOnlyStream::stream_flush()
- 8.9.x core/lib/Drupal/Core/StreamWrapper/ReadOnlyStream.php \Drupal\Core\StreamWrapper\ReadOnlyStream::stream_flush()
- 10 core/lib/Drupal/Core/StreamWrapper/ReadOnlyStream.php \Drupal\Core\StreamWrapper\ReadOnlyStream::stream_flush()
Support for fflush().
Nothing will be output to the file, as this is a read-only stream wrapper. However as stream_flush is called during stream_close we should not trigger an error.
Return value
bool FALSE, as no data will be stored.
Overrides PhpStreamWrapperInterface::stream_flush
See also
http://php.net/manual/streamwrapper.stream-flush.php
File
-
core/
lib/ Drupal/ Core/ StreamWrapper/ ReadOnlyStream.php, line 185
Class
- ReadOnlyStream
- Defines a read-only Drupal stream wrapper base class.
Namespace
Drupal\Core\StreamWrapperCode
public function stream_flush() {
return FALSE;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.