function FileStorage::getFileSystem

Same name in other branches
  1. 9 core/lib/Drupal/Core/Config/FileStorage.php \Drupal\Core\Config\FileStorage::getFileSystem()
  2. 10 core/lib/Drupal/Core/Config/FileStorage.php \Drupal\Core\Config\FileStorage::getFileSystem()
  3. 11.x core/lib/Drupal/Core/Config/FileStorage.php \Drupal\Core\Config\FileStorage::getFileSystem()

Returns file system service.

Return value

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

File

core/lib/Drupal/Core/Config/FileStorage.php, line 368

Class

FileStorage
Defines the file storage.

Namespace

Drupal\Core\Config

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.