You are here

private function AssetDumper::getFileSystem in Drupal 8

Helper method for returning the file system service.

Return value

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

File

core/lib/Drupal/Core/Asset/AssetDumper.php, line 82

Class

AssetDumper
Dumps a CSS or JavaScript asset.

Namespace

Drupal\Core\Asset

Code

private function getFileSystem() {
  if (!$this->fileSystem) {
    @trigger_error('\\Drupal\\Core\\File\\FileSystemInterface is a dependency of this class in Drupal 8.7.0 and will be required before Drupal 9.0.0. See https://www.drupal.org/node/3006851.', E_USER_DEPRECATED);
    $this->fileSystem = \Drupal::service('file_system');
  }
  return $this->fileSystem;
}