src/Core/File/FileSystemTrait.php
public function getFileSystem() {
    if (empty($this->fileSystem)) {
      $this->fileSystem = \Drupal::service('file_system');
    }
    return $this->fileSystem;
  }
public function getFileSystem() {
    if (empty($this->fileSystem)) {
      $this->fileSystem = \Drupal::service('file_system');
    }
    return $this->fileSystem;
  }
public function getFileSystem ( ) { if ( empty ( $ this -> fileSystem ) ) { $ this -> fileSystem = \ Drupal :: service ( 'file_system' ) ; } return $ this -> fileSystem ; }
Gets the file system.

@return \Drupal\Core\File\FileSystemInterface
The file system.
Gets the file system .