You are here

public function MenuLinkFormInterface::setMenuLinkInstance in Drupal 8

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

Code

public function setMenuLinkInstance(MenuLinkInterface $menu_link);