public function LinkController::editForm in Colossal Menu 8
Same name and namespace in other branches
- 2.x src/Controller/LinkController.php \Drupal\colossal_menu\Controller\LinkController::editForm()
Edit Link form.
Presents the creation form for colossal_menu_link entities of given bundle/type.
Parameters
\Drupal\colossal_menu\LinkInterface $colossal_menu_link: The custom bundle to add.
Return value
array A form array as expected by drupal_render().
File
- src/
Controller/ LinkController.php, line 188
Class
- LinkController
- Class LinkAddController.
Namespace
Drupal\colossal_menu\ControllerCode
public function editForm(LinkInterface $colossal_menu_link) {
return $this
->entityFormBuilder()
->getForm($colossal_menu_link);
}