You are here

public function Config::getFunctions in Bamboo Twig 8.4

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

List of all Twig functions.

File

bamboo_twig_config/src/TwigExtension/Config.php, line 15

Class

Config
Provides getter for configs drupal storage as Twig Extensions.

Namespace

Drupal\bamboo_twig_config\TwigExtension

Code

public function getFunctions() {
  return [
    new \Twig_SimpleFunction('bamboo_settings_get', [
      $this,
      'getSettings',
    ]),
    new \Twig_SimpleFunction('bamboo_config_get', [
      $this,
      'getConfig',
    ]),
    new \Twig_SimpleFunction('bamboo_state_get', [
      $this,
      'getState',
    ]),
  ];
}