You are here

private function LocalStream::getFileSystem in Drupal 9

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

Returns file system service.

Return value

\Drupal\Core\File\FileSystemInterface The file system service.

File

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

Class

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

Namespace

Drupal\Core\StreamWrapper

Code

private function getFileSystem() {
  return \Drupal::service('file_system');
}