public function MenuLinkDefaultForm::setMenuLinkInstance in Zircon Profile 8.0
Same name and namespace in other branches
- 8 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\FormCode
public function setMenuLinkInstance(MenuLinkInterface $menu_link) {
$this->menuLink = $menu_link;
}