You are here

public function SimpleMegaMenuTwigExtension::__construct in Simple Mega Menu 2.0.x

Same name and namespace in other branches
  1. 8 src/TwigExtension/SimpleMegaMenuTwigExtension.php \Drupal\simple_megamenu\TwigExtension\SimpleMegaMenuTwigExtension::__construct()

Constructs \Drupal\Core\Template\TwigExtension.

Parameters

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager service.

File

src/TwigExtension/SimpleMegaMenuTwigExtension.php, line 29

Class

SimpleMegaMenuTwigExtension
Class SimpleMegaMenuTwigExtension.

Namespace

Drupal\simple_megamenu\TwigExtension

Code

public function __construct(EntityTypeManagerInterface $entity_type_manager) {
  $this->entityTypeManager = $entity_type_manager;
}