function MenuLinkFormInterface::setMenuLinkInstance
Same name in other branches
- 9 core/lib/Drupal/Core/Menu/Form/MenuLinkFormInterface.php \Drupal\Core\Menu\Form\MenuLinkFormInterface::setMenuLinkInstance()
- 8.9.x core/lib/Drupal/Core/Menu/Form/MenuLinkFormInterface.php \Drupal\Core\Menu\Form\MenuLinkFormInterface::setMenuLinkInstance()
- 11.x core/lib/Drupal/Core/Menu/Form/MenuLinkFormInterface.php \Drupal\Core\Menu\Form\MenuLinkFormInterface::setMenuLinkInstance()
Injects the menu link plugin instance.
Parameters
\Drupal\Core\Menu\MenuLinkInterface $menu_link: A menu link plugin instance.
1 method overrides MenuLinkFormInterface::setMenuLinkInstance()
- MenuLinkDefaultForm::setMenuLinkInstance in core/
lib/ Drupal/ Core/ Menu/ Form/ MenuLinkDefaultForm.php - Injects the menu link plugin instance.
File
-
core/
lib/ Drupal/ Core/ Menu/ Form/ MenuLinkFormInterface.php, line 25
Class
- MenuLinkFormInterface
- Defines an interface for edit forms of menu links.
Namespace
Drupal\Core\Menu\FormCode
public function setMenuLinkInstance(MenuLinkInterface $menu_link);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.