function menu_ui_form_node_type_form_validate

Same name and namespace in other branches
  1. 11.x core/modules/menu_ui/menu_ui.module \menu_ui_form_node_type_form_validate()
  2. 10 core/modules/menu_ui/menu_ui.module \menu_ui_form_node_type_form_validate()
  3. 9 core/modules/menu_ui/menu_ui.module \menu_ui_form_node_type_form_validate()
  4. 8.9.x core/modules/menu_ui/menu_ui.module \menu_ui_form_node_type_form_validate()

Validate handler for forms with menu options.

Deprecated

in drupal:11.4.0 and is removed from drupal:12.0.0. Use \Drupal\menu_ui\Hooks\MenuUiHooks::formNodeTypeFormValidate() instead.

See also

https://www.drupal.org/node/3566774

File

core/modules/menu_ui/menu_ui.module, line 84

Code

function menu_ui_form_node_type_form_validate(&$form, FormStateInterface $form_state) : void {
  @trigger_error(__FUNCTION__ . '() is deprecated in drupal:11.4.0 and is removed from drupal:12.0.0. Use MenuUiHooks::formNodeTypeFormValidate() instead. See https://www.drupal.org/node/3566774', E_USER_DEPRECATED);
  \Drupal::service(MenuUiHooks::class)->formNodeTypeFormValidate($form, $form_state);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.