You are here

public function File::getFunctions in Bamboo Twig 8.5

Same name and namespace in other branches
  1. 8.2 bamboo_twig_file/src/TwigExtension/File.php \Drupal\bamboo_twig_file\TwigExtension\File::getFunctions()
  2. 8.3 bamboo_twig_file/src/TwigExtension/File.php \Drupal\bamboo_twig_file\TwigExtension\File::getFunctions()
  3. 8.4 bamboo_twig_file/src/TwigExtension/File.php \Drupal\bamboo_twig_file\TwigExtension\File::getFunctions()

List of all Twig functions.

File

bamboo_twig_file/src/TwigExtension/File.php, line 28

Class

File
Provides a 'File' Twig Extensions.

Namespace

Drupal\bamboo_twig_file\TwigExtension

Code

public function getFunctions() {
  return [
    new TwigFunction('bamboo_file_url_absolute', [
      $this,
      'urlAbsolute',
    ]),
  ];
}