You are here

public function TwigTweakExtension::getTests in Twig Tweak 3.1.x

Same name and namespace in other branches
  1. 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_tweak

Code

public function getTests() : array {
  $tests = [];
  $this->moduleHandler
    ->alter('twig_tweak_tests', $tests);
  $this->themeManager
    ->alter('twig_tweak_tests', $tests);
  return $tests;
}