SystemMenuOffCanvasForm::getEntityForm

protected SystemMenuOffCanvasForm::getEntityForm(MenuInterface $entity)

Gets the entity form for this menu.

Parameters

\Drupal\system\MenuInterface $entity: The menu entity.

Return value

\Drupal\Core\Entity\EntityFormInterface The entity form.

File

core/modules/outside_in/src/Form/SystemMenuOffCanvasForm.php, line 135

Class

SystemMenuOffCanvasForm
The off-canvas form handler for the SystemMenuBlock.

Namespace

Drupal\outside_in\Form

Code

protected function getEntityForm(MenuInterface $entity) {
  $entity_form = $this->entityTypeManager->getFormObject('menu', 'edit');
  $entity_form->setEntity($entity);
  return $entity_form;
}
doc_Drupal
2016-10-29 09:45:51
Comments
Leave a Comment

Please login to continue.