You are here

public static function Files::extensionGuesser in Bamboo Twig 8

Render a custom date format with Twig.

Use the internal helper "format_date" to render the date using the current language for texts.

File

bamboo_twig_files/src/TwigExtension/Files.php, line 43

Class

Files
Provides a 'Files' Twig Extensions.

Namespace

Drupal\bamboo_twig_files\TwigExtension

Code

public static function extensionGuesser($mime_type) {
  $guesser = ExtensionGuesser::getInstance();
  return $guesser
    ->guess($mime_type);
}