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; }
Please login to continue.