You are here

protected function PrivateFileKeyProvider::getFileSystem in Apigee Edge 8

Gets the file system service.

Return value

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

File

src/Plugin/KeyProvider/PrivateFileKeyProvider.php, line 206

Class

PrivateFileKeyProvider
Stores Apigee Edge authentication credentials in a private file.

Namespace

Drupal\apigee_edge\Plugin\KeyProvider

Code

protected function getFileSystem() : FileSystemInterface {

  // This fallback is needed when the plugin instance is serialized and the
  // property is null.
  return $this->fileSystem ?? \Drupal::service('file_system');
}