You are here

protected function TwigExtensionBase::getExtensionGuesser in Bamboo Twig 8.3

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

Return a singleton mime type to file extension guesser.

Return value

\Symfony\Component\HttpFoundation\File\MimeType\ExtensionGuesserInterface Return a singleton mime type to file extension guesser.

File

src/TwigExtension/TwigExtensionBase.php, line 187

Class

TwigExtensionBase
Provides a Twig Extension Lazy Service Injection.

Namespace

Drupal\bamboo_twig\TwigExtension

Code

protected function getExtensionGuesser() {
  return ExtensionGuesser::getInstance();
}