You are here

public function LocalStream::stream_flush in Drupal 8

Same name and namespace in other branches
  1. 9 core/lib/Drupal/Core/StreamWrapper/LocalStream.php \Drupal\Core\StreamWrapper\LocalStream::stream_flush()
  2. 10 core/lib/Drupal/Core/StreamWrapper/LocalStream.php \Drupal\Core\StreamWrapper\LocalStream::stream_flush()

Support for fflush().

Return value

bool TRUE if data was successfully stored (or there was no data to store).

Overrides PhpStreamWrapperInterface::stream_flush

See also

http://php.net/manual/streamwrapper.stream-flush.php

1 method overrides LocalStream::stream_flush()
LocalReadOnlyStream::stream_flush in core/lib/Drupal/Core/StreamWrapper/LocalReadOnlyStream.php
Support for fflush().

File

core/lib/Drupal/Core/StreamWrapper/LocalStream.php, line 258

Class

LocalStream
Defines a Drupal stream wrapper base class for local files.

Namespace

Drupal\Core\StreamWrapper

Code

public function stream_flush() {
  return fflush($this->handle);
}