public function Config::getFunctions in Bamboo Twig 8.5
Same name and namespace in other branches
- 8.2 bamboo_twig_config/src/TwigExtension/Config.php \Drupal\bamboo_twig_config\TwigExtension\Config::getFunctions()
- 8.3 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 16
Class
- Config
- Provides getter for configs drupal storage as Twig Extensions.
Namespace
Drupal\bamboo_twig_config\TwigExtensionCode
public function getFunctions() {
return [
new TwigFunction('bamboo_settings_get', [
$this,
'getSettings',
]),
new TwigFunction('bamboo_config_get', [
$this,
'getConfig',
]),
new TwigFunction('bamboo_state_get', [
$this,
'getState',
]),
];
}