You are here

public function LocalStream::stream_close in Drupal 9

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/StreamWrapper/LocalStream.php \Drupal\Core\StreamWrapper\LocalStream::stream_close()

Closes stream.

This method is called in response to fclose(). All resources that were locked, or allocated, by the wrapper should be released.

Overrides PhpStreamWrapperInterface::stream_close

See also

fclose()

PhpStreamWrapperInterface::dir_closedir()

http://php.net/manual/en/streamwrapper.stream-close.php

File

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

Class

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

Namespace

Drupal\Core\StreamWrapper

Code

public function stream_close() {
  return fclose($this->handle);
}