function ComponentsTwigExtension::__construct

Same name in other branches
  1. 10 core/lib/Drupal/Core/Template/ComponentsTwigExtension.php \Drupal\Core\Template\ComponentsTwigExtension::__construct()

Creates TwigExtension.

Parameters

\Drupal\Core\Theme\ComponentPluginManager $pluginManager: The component plugin manager.

\Drupal\Core\Theme\Component\ComponentValidator $componentValidator: The component validator.

File

core/lib/Drupal/Core/Template/ComponentsTwigExtension.php, line 28

Class

ComponentsTwigExtension
The twig extension so Drupal can recognize the new code.

Namespace

Drupal\Core\Template

Code

public function __construct(ComponentPluginManager $pluginManager, ComponentValidator $componentValidator) {
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.