function FieldUiHooks::entityBundleCreate

Implements hook_entity_bundle_create().

File

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

Class

FieldUiHooks
Hook implementations for field_ui.

Namespace

Drupal\field_ui\Hook

Code

public function entityBundleCreate($entity_type, $bundle) {
    // When a new bundle is created, the menu needs to be rebuilt to add our
    // menu item tabs.
    \Drupal::service('router.builder')->setRebuildNeeded();
}

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