You are here

protected function TwigExtensionBase::getFileStorage in Bamboo Twig 8.2

Same name and namespace in other branches
  1. 8.5 src/TwigExtension/TwigExtensionBase.php \Drupal\bamboo_twig\TwigExtension\TwigExtensionBase::getFileStorage()
  2. 8.3 src/TwigExtension/TwigExtensionBase.php \Drupal\bamboo_twig\TwigExtension\TwigExtensionBase::getFileStorage()
  3. 8.4 src/TwigExtension/TwigExtensionBase.php \Drupal\bamboo_twig\TwigExtension\TwigExtensionBase::getFileStorage()

Return the file storage.

Return value

\Drupal\Component\PhpStorage\FileStorage Return the file storage.

File

src/TwigExtension/TwigExtensionBase.php, line 137

Class

TwigExtensionBase
Provides a Twig Extension Lazy Service Injection.

Namespace

Drupal\bamboo_twig\TwigExtension

Code

protected function getFileStorage() {
  return $this
    ->getEntityTypeManager()
    ->getStorage('file');
}