public function MenuLinkDefaultForm::setMenuLinkInstance in Drupal 10
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Menu/Form/MenuLinkDefaultForm.php \Drupal\Core\Menu\Form\MenuLinkDefaultForm::setMenuLinkInstance()
- 9 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 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;
}