public function TwigTweakExtension::getTests in Twig Tweak 3.1.x
Same name and namespace in other branches
- 3.x src/TwigTweakExtension.php \Drupal\twig_tweak\TwigTweakExtension::getTests()
File
- src/
TwigTweakExtension.php, line 132
Class
- TwigTweakExtension
- Twig extension with some useful functions and filters.
Namespace
Drupal\twig_tweakCode
public function getTests() : array {
$tests = [];
$this->moduleHandler
->alter('twig_tweak_tests', $tests);
$this->themeManager
->alter('twig_tweak_tests', $tests);
return $tests;
}