public function Config::getFunctions in Bamboo Twig 8.3
Same name and namespace in other branches
- 8.5 bamboo_twig_config/src/TwigExtension/Config.php \Drupal\bamboo_twig_config\TwigExtension\Config::getFunctions()
- 8.2 bamboo_twig_config/src/TwigExtension/Config.php \Drupal\bamboo_twig_config\TwigExtension\Config::getFunctions()
- 8.4 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\TwigExtensionCode
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',
]),
];
}