You are here

public function MenuLinkDefaultForm::setMenuLinkInstance in Zircon Profile 8

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

Injects the menu link plugin instance.

Parameters

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

Overrides MenuLinkFormInterface::setMenuLinkInstance

File

core/lib/Drupal/Core/Menu/Form/MenuLinkDefaultForm.php, line 98
Contains \Drupal\Core\Menu\Form\MenuLinkDefaultForm.

Class

MenuLinkDefaultForm
Provides an edit form for static menu links.

Namespace

Drupal\Core\Menu\Form

Code

public function setMenuLinkInstance(MenuLinkInterface $menu_link) {
  $this->menuLink = $menu_link;
}