function FibersTestExtension::getFunctions
File
-
core/
modules/ system/ tests/ modules/ twig_fibers_test/ src/ TwigExtension/ FibersTestExtension.php, line 18
Class
- FibersTestExtension
- Custom Twig extension that suspends a fiber.
Namespace
Drupal\twig_fibers_test\TwigExtensionCode
public function getFunctions() : array {
return [
new TwigFunction('fibers_test_function', [
$this,
'fibersTestFunction',
]),
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.