You are here

protected function ProviderPluginBase::getFileSystem in Video Embed Field 8

Same name and namespace in other branches
  1. 8.2 src/ProviderPluginBase.php \Drupal\video_embed_field\ProviderPluginBase::getFileSystem()

Get the file system service.

Return value

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

File

src/ProviderPluginBase.php, line 89

Class

ProviderPluginBase
A base for the provider plugins.

Namespace

Drupal\video_embed_field

Code

protected function getFileSystem() {
  if (!isset($this->fileSystem)) {
    $this->fileSystem = \Drupal::service('file_system');
  }
  return $this->fileSystem;
}