function FieldUiHooks::entityFormModePresave

Same name and namespace in other branches
  1. 11.x core/modules/field_ui/src/Hook/FieldUiHooks.php \Drupal\field_ui\Hook\FieldUiHooks::entityFormModePresave()

Implements hook_ENTITY_TYPE_presave().

Attributes

#[Hook('entity_form_mode_presave')]

File

core/modules/field_ui/src/Hook/FieldUiHooks.php, line 207

Class

FieldUiHooks
Hook implementations for field_ui.

Namespace

Drupal\field_ui\Hook

Code

public function entityFormModePresave(EntityFormModeInterface $form_mode) : void {
  \Drupal::service('router.builder')->setRebuildNeeded();
}

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