function MenuLinkDefaultForm::setMenuLinkInstance
Same name in other branches
- 9 core/lib/Drupal/Core/Menu/Form/MenuLinkDefaultForm.php \Drupal\Core\Menu\Form\MenuLinkDefaultForm::setMenuLinkInstance()
- 10 core/lib/Drupal/Core/Menu/Form/MenuLinkDefaultForm.php \Drupal\Core\Menu\Form\MenuLinkDefaultForm::setMenuLinkInstance()
- 11.x core/lib/Drupal/Core/Menu/Form/MenuLinkDefaultForm.php \Drupal\Core\Menu\Form\MenuLinkDefaultForm::setMenuLinkInstance()
Overrides MenuLinkFormInterface::setMenuLinkInstance
File
-
core/
lib/ Drupal/ Core/ Menu/ Form/ MenuLinkDefaultForm.php, line 86
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;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.