You are here

public function Path::getFunctions in Bamboo Twig 8.4

Same name and namespace in other branches
  1. 8.5 bamboo_twig_path/src/TwigExtension/Path.php \Drupal\bamboo_twig_path\TwigExtension\Path::getFunctions()
  2. 8.2 bamboo_twig_path/src/TwigExtension/Path.php \Drupal\bamboo_twig_path\TwigExtension\Path::getFunctions()
  3. 8.3 bamboo_twig_path/src/TwigExtension/Path.php \Drupal\bamboo_twig_path\TwigExtension\Path::getFunctions()

List of all Twig functions.

File

bamboo_twig_path/src/TwigExtension/Path.php, line 13

Class

Path
Provides a 'Path' Twig Extensions.

Namespace

Drupal\bamboo_twig_path\TwigExtension

Code

public function getFunctions() {
  return [
    new \Twig_SimpleFunction('bamboo_path_system', [
      $this,
      'getSystemPath',
    ]),
  ];
}