function field_ui_entity_bundle_create

field_ui_entity_bundle_create($entity_type, $bundle)

Implements hook_entity_bundle_create().

File

core/modules/field_ui/field_ui.module, line 111
Allows administrators to attach custom fields to fieldable types.

Code

function field_ui_entity_bundle_create($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();
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!modules!field_ui!field_ui.module/function/field_ui_entity_bundle_create/8.1.x