menu_ui_form_node_type_form_validate

menu_ui_form_node_type_form_validate(&$form, FormStateInterface $form_state) Validate handler for forms with menu options. See also menu_ui_form_node_type_form_alter() File core/modules/menu_ui/menu_ui.module, line 442 Allows administrators to customize the site's navigation menus. Code function menu_ui_form_node_type_form_validate(&$form, FormStateInterface $form_state) { $available_menus = array_filter($form_state->getValue('menu_options')); // If there is at least one menu

menu_ui_form_node_type_form_builder

menu_ui_form_node_type_form_builder($entity_type, NodeTypeInterface $type, &$form, FormStateInterface $form_state) Entity builder for the node type form with menu options. See also menu_ui_form_node_type_form_alter() File core/modules/menu_ui/menu_ui.module, line 462 Allows administrators to customize the site's navigation menus. Code function menu_ui_form_node_type_form_builder($entity_type, NodeTypeInterface $type, &$form, FormStateInterface $form_state) { $type->setThirdParty

menu_ui_form_node_type_form_alter

menu_ui_form_node_type_form_alter(&$form, FormStateInterface $form_state) Implements hook_form_FORM_ID_alter() for \Drupal\node\NodeTypeForm. Adds menu options to the node type form. See also NodeTypeForm::form() menu_ui_form_node_type_form_submit() File core/modules/menu_ui/menu_ui.module, line 395 Allows administrators to customize the site's navigation menus. Code function menu_ui_form_node_type_form_alter(&$form, FormStateInterface $form_state) { /** @var \Drupal\Core\Menu\Menu

menu_ui_form_node_form_submit

menu_ui_form_node_form_submit($form, FormStateInterface $form_state) Form submission handler for menu item field on the node form. See also menu_ui_form_node_form_alter() File core/modules/menu_ui/menu_ui.module, line 364 Allows administrators to customize the site's navigation menus. Code function menu_ui_form_node_form_submit($form, FormStateInterface $form_state) { $node = $form_state->getFormObject()->getEntity(); if (!$form_state->isValueEmpty('menu')) { $values = $form

menu_ui_form_node_form_alter

menu_ui_form_node_form_alter(&$form, FormStateInterface $form_state) Implements hook_form_BASE_FORM_ID_alter() for \Drupal\node\NodeForm. Adds menu item fields to the node form. See also menu_ui_form_node_form_submit() File core/modules/menu_ui/menu_ui.module, line 266 Allows administrators to customize the site's navigation menus. Code function menu_ui_form_node_form_alter(&$form, FormStateInterface $form_state) { // Generate a list of possible parents (not including this link or

menu_ui_entity_type_build

menu_ui_entity_type_build(array &$entity_types) Implements hook_entity_type_build(). File core/modules/menu_ui/menu_ui.module, line 59 Allows administrators to customize the site's navigation menus. Code function menu_ui_entity_type_build(array &$entity_types) { /** @var $entity_types \Drupal\Core\Entity\EntityTypeInterface[] */ $entity_types['menu'] ->setFormClass('add', 'Drupal\menu_ui\MenuForm') ->setFormClass('edit', 'Drupal\menu_ui\MenuForm') ->setFormClass

menu_ui_block_view_system_menu_block_alter

menu_ui_block_view_system_menu_block_alter(array &$build, BlockPluginInterface $block) Implements hook_block_view_BASE_BLOCK_ID_alter() for 'system_menu_block'. File core/modules/menu_ui/menu_ui.module, line 120 Allows administrators to customize the site's navigation menus. Code function menu_ui_block_view_system_menu_block_alter(array &$build, BlockPluginInterface $block) { if ($block->getBaseId() == 'system_menu_block') { $menu_name = $block->getDerivativeId(); $bui

menu_ui.module

Allows administrators to customize the site's navigation menus. A menu (in this context) is a hierarchical collection of links, generally used for navigation. File core/modules/menu_ui/menu_ui.module Functions Name Description menu_ui_block_view_system_menu_block_alter Implements hook_block_view_BASE_BLOCK_ID_alter() for 'system_menu_block'. menu_ui_entity_type_build Implements hook_entity_type_build(). menu_ui_form_node_form_alter Implements hook_form_BASE_FORM_ID_alter() for

menu_secondary_local_tasks

menu_secondary_local_tasks() Returns the rendered local tasks at the second level. Deprecated in Drupal 8.0.0, will be removed before Drupal 9.0.0. Related topics Menu system Define the navigation menus, local actions and tasks, and contextual links. File core/includes/menu.inc, line 135 API for the Drupal menu system. Code function menu_secondary_local_tasks() { /** @var \Drupal\Core\Menu\LocalTaskManagerInterface $manager */ $manager = \Drupal::service('plugin.manager.menu.local_ta

menu_primary_local_tasks

menu_primary_local_tasks() Returns the rendered local tasks at the top level. Deprecated in Drupal 8.0.0, will be removed before Drupal 9.0.0. Related topics Menu system Define the navigation menus, local actions and tasks, and contextual links. File core/includes/menu.inc, line 122 API for the Drupal menu system. Code function menu_primary_local_tasks() { /** @var \Drupal\Core\Menu\LocalTaskManagerInterface $manager */ $manager = \Drupal::service('plugin.manager.menu.local_task');