function MenuLinkContentDeriver::__construct

Same name and namespace in other branches
  1. 11.x core/modules/menu_link_content/src/Plugin/Deriver/MenuLinkContentDeriver.php \Drupal\menu_link_content\Plugin\Deriver\MenuLinkContentDeriver::__construct()
  2. 10 core/modules/menu_link_content/src/Plugin/Deriver/MenuLinkContentDeriver.php \Drupal\menu_link_content\Plugin\Deriver\MenuLinkContentDeriver::__construct()
  3. 9 core/modules/menu_link_content/src/Plugin/Deriver/MenuLinkContentDeriver.php \Drupal\menu_link_content\Plugin\Deriver\MenuLinkContentDeriver::__construct()
  4. 8.9.x core/modules/menu_link_content/src/Plugin/Deriver/MenuLinkContentDeriver.php \Drupal\menu_link_content\Plugin\Deriver\MenuLinkContentDeriver::__construct()

Constructs a MenuLinkContentDeriver instance.

Parameters

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

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

File

core/modules/menu_link_content/src/Plugin/Deriver/MenuLinkContentDeriver.php, line 27

Class

MenuLinkContentDeriver
Provides a deriver for user entered paths of menu links.

Namespace

Drupal\menu_link_content\Plugin\Deriver

Code

public function __construct(protected EntityTypeManagerInterface $entityTypeManager, protected MenuLinkManagerInterface $menuLinkManager) {
}

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