You are here

public function LinkForm::setMenuLinkInstance in Colossal Menu 8

Same name and namespace in other branches
  1. 2.x src/Form/LinkForm.php \Drupal\colossal_menu\Form\LinkForm::setMenuLinkInstance()

Injects the menu link plugin instance.

Parameters

\Drupal\Core\Menu\MenuLinkInterface $menu_link: A menu link plugin instance.

Overrides MenuLinkFormInterface::setMenuLinkInstance

File

src/Form/LinkForm.php, line 20

Class

LinkForm
Form controller for Link edit forms.

Namespace

Drupal\colossal_menu\Form

Code

public function setMenuLinkInstance(MenuLinkInterface $menu_link) {
  $this->entity = $menu_link;
}