public function File::getFunctions in Bamboo Twig 8.3
Same name and namespace in other branches
- 8.5 bamboo_twig_file/src/TwigExtension/File.php \Drupal\bamboo_twig_file\TwigExtension\File::getFunctions()
- 8.2 bamboo_twig_file/src/TwigExtension/File.php \Drupal\bamboo_twig_file\TwigExtension\File::getFunctions()
- 8.4 bamboo_twig_file/src/TwigExtension/File.php \Drupal\bamboo_twig_file\TwigExtension\File::getFunctions()
List of all Twig functions.
File
- bamboo_twig_file/
src/ TwigExtension/ File.php, line 24
Class
- File
- Provides a 'File' Twig Extensions.
Namespace
Drupal\bamboo_twig_file\TwigExtensionCode
public function getFunctions() {
return [
new \Twig_SimpleFunction('bamboo_file_url_absolute', [
$this,
'urlAbsolute',
]),
];
}