MenuLinkDefaultForm::setMenuLinkInstance

public MenuLinkDefaultForm::setMenuLinkInstance(MenuLinkInterface $menu_link)

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 93

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;
}
doc_Drupal
2016-10-29 09:26:56
Comments
Leave a Comment

Please login to continue.