public function Loader::getFunctions in Bamboo Twig 8.3
Same name and namespace in other branches
- 8.5 bamboo_twig_loader/src/TwigExtension/Loader.php \Drupal\bamboo_twig_loader\TwigExtension\Loader::getFunctions()
- 8.2 bamboo_twig_loader/src/TwigExtension/Loader.php \Drupal\bamboo_twig_loader\TwigExtension\Loader::getFunctions()
- 8.4 bamboo_twig_loader/src/TwigExtension/Loader.php \Drupal\bamboo_twig_loader\TwigExtension\Loader::getFunctions()
File
- bamboo_twig_loader/
src/ TwigExtension/ Loader.php, line 15
Class
- Loader
- Provides some loaders as Twig Extensions.
Namespace
Drupal\bamboo_twig_loader\TwigExtensionCode
public function getFunctions() {
return [
new \Twig_SimpleFunction('bamboo_load_entity', [
$this,
'loadEntity',
]),
new \Twig_SimpleFunction('bamboo_load_field', [
$this,
'loadField',
]),
new \Twig_SimpleFunction('bamboo_load_currentuser', [
$this,
'loadCurrentUser',
]),
new \Twig_SimpleFunction('bamboo_load_image', [
$this,
'loadImage',
]),
];
}