You are here

public function AddMenuOverride::__construct in Entity Reference Hierarchy 8.2

Same name and namespace in other branches
  1. 3.x modules/entity_hierarchy_microsite/src/Controller/AddMenuOverride.php \Drupal\entity_hierarchy_microsite\Controller\AddMenuOverride::__construct()

Constructs a new AddMenuOverride.

Parameters

\Drupal\Core\Entity\EntityFormBuilderInterface $entityFormBuilder: Entity form builder.

\Drupal\Core\Menu\MenuLinkManagerInterface $menuLinkManager: Menu link manager.

\Drupal\Core\Entity\EntityTypeManagerInterface $entityTypeManager: Entity type manager.

File

modules/entity_hierarchy_microsite/src/Controller/AddMenuOverride.php, line 49

Class

AddMenuOverride
Defines a class for a controller for adding a menu overrride.

Namespace

Drupal\entity_hierarchy_microsite\Controller

Code

public function __construct(EntityFormBuilderInterface $entityFormBuilder, MenuLinkManagerInterface $menuLinkManager, EntityTypeManagerInterface $entityTypeManager) {
  $this->entityFormBuilder = $entityFormBuilder;
  $this->menuLinkManager = $menuLinkManager;
  $this->entityTypeManager = $entityTypeManager;
}