You are here

public function LinkForm::setMenuLinkInstance in Colossal Menu 2.x

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