You are here

public function MenuLinkDefaultForm::setMenuLinkInstance in Drupal 9

Same name and namespace in other branches
  1. 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 86

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;
}