function field_ui_form_node_type_form_submit
Same name in other branches
- 7.x modules/field_ui/field_ui.module \field_ui_form_node_type_form_submit()
- 8.9.x core/modules/field_ui/field_ui.module \field_ui_form_node_type_form_submit()
Form submission handler for the 'Save and manage fields' button.
See also
field_ui_form_node_type_form_alter()
1 string reference to 'field_ui_form_node_type_form_submit'
- field_ui_form_node_type_form_alter in core/
modules/ field_ui/ field_ui.module - Implements hook_form_FORM_ID_alter().
File
-
core/
modules/ field_ui/ field_ui.module, line 184
Code
function field_ui_form_node_type_form_submit($form, FormStateInterface $form_state) {
if ($form_state->getTriggeringElement()['#parents'][0] === 'save_continue' && ($route_info = FieldUI::getOverviewRouteInfo('node', $form_state->getValue('type')))) {
$form_state->setRedirectUrl($route_info);
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.