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->setThirdPartySetting('menu_ui', 'available_menus', array_values(array_filter($form_state->getValue('menu_options')))); $type->setThirdPartySetting('menu_ui', 'parent', $form_state->getValue('menu_parent')); }
Please login to continue.