You are here

public function TwigTweakExtension::__construct in Twig Tweak 3.x

Same name and namespace in other branches
  1. 3.1.x src/TwigTweakExtension.php \Drupal\twig_tweak\TwigTweakExtension::__construct()

Constructs the TwigTweakExtension object.

File

src/TwigTweakExtension.php, line 52

Class

TwigTweakExtension
Twig extension with some useful functions and filters.

Namespace

Drupal\twig_tweak

Code

public function __construct(ModuleHandlerInterface $module_handler, ThemeManagerInterface $theme_manager) {
  $this->moduleHandler = $module_handler;
  $this->themeManager = $theme_manager;
}