You are here

public function MenuLinkPluginConverter::__construct in Zircon Profile 8

Same name in this branch
  1. 8 core/lib/Drupal/Core/ParamConverter/MenuLinkPluginConverter.php \Drupal\Core\ParamConverter\MenuLinkPluginConverter::__construct()
  2. 8 core/lib/Drupal/Core/ProxyClass/ParamConverter/MenuLinkPluginConverter.php \Drupal\Core\ProxyClass\ParamConverter\MenuLinkPluginConverter::__construct()
Same name and namespace in other branches
  1. 8.0 core/lib/Drupal/Core/ParamConverter/MenuLinkPluginConverter.php \Drupal\Core\ParamConverter\MenuLinkPluginConverter::__construct()

Constructs a new MenuLinkPluginConverter.

Parameters

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

File

core/lib/Drupal/Core/ParamConverter/MenuLinkPluginConverter.php, line 32
Contains \Drupal\Core\ParamConverter\MenuLinkPluginConverter.

Class

MenuLinkPluginConverter
Parameter converter for upcasting entity ids to full objects.

Namespace

Drupal\Core\ParamConverter

Code

public function __construct(MenuLinkManagerInterface $menu_link_manager) {
  $this->menuLinkManager = $menu_link_manager;
}