You are here

public function MenuLinkTreeHandler::__construct in Menu Item Extras 8.2

Constructs a new MenuLinkTreeHandler.

Parameters

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

\Drupal\Core\Entity\EntityRepositoryInterface $entity_repository: The entity repository manager.

File

src/Service/MenuLinkTreeHandler.php, line 38

Class

MenuLinkTreeHandler
Class MenuLinkTreeHandler.

Namespace

Drupal\menu_item_extras\Service

Code

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