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
1 2 3 4 5 | protected function getEntityForm(MenuInterface $entity ) { $entity_form = $this ->entityTypeManager->getFormObject( 'menu' , 'edit' ); $entity_form ->setEntity( $entity ); return $entity_form ; } |
Please login to continue.