function FibersTestExtension::getFunctions

Same name and namespace in other branches
  1. 11.x core/modules/system/tests/modules/twig_fibers_test/src/TwigExtension/FibersTestExtension.php \Drupal\twig_fibers_test\TwigExtension\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\TwigExtension

Code

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.