You are here

public function Files::getFunctions in Bamboo Twig 8

List of all Twig functions.

File

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

Class

Files
Provides a 'Files' Twig Extensions.

Namespace

Drupal\bamboo_twig_files\TwigExtension

Code

public function getFunctions() {
  return [
    new \Twig_SimpleFunction('theme_url', [
      $this,
      'themeUrl',
    ], [
      'is_safe' => [
        'html',
      ],
    ]),
  ];
}