You are here

public function MenuLinkFormInterface::setMenuLinkInstance in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/lib/Drupal/Core/Menu/Form/MenuLinkFormInterface.php \Drupal\Core\Menu\Form\MenuLinkFormInterface::setMenuLinkInstance()

Injects the menu link plugin instance.

Parameters

\Drupal\Core\Menu\MenuLinkInterface $menu_link: A menu link plugin instance.

1 method overrides MenuLinkFormInterface::setMenuLinkInstance()
MenuLinkDefaultForm::setMenuLinkInstance in core/lib/Drupal/Core/Menu/Form/MenuLinkDefaultForm.php
Injects the menu link plugin instance.

File

core/lib/Drupal/Core/Menu/Form/MenuLinkFormInterface.php, line 30
Contains \Drupal\Core\Menu\Form\MenuLinkFormInterface.

Class

MenuLinkFormInterface
Defines an interface for edit forms of menu links.

Namespace

Drupal\Core\Menu\Form

Code

public function setMenuLinkInstance(MenuLinkInterface $menu_link);