function field_ui_entity_bundle_create
Same name in other branches
- 9 core/modules/field_ui/field_ui.module \field_ui_entity_bundle_create()
- 8.9.x core/modules/field_ui/field_ui.module \field_ui_entity_bundle_create()
- 10 core/modules/field_ui/field_ui.module \field_ui_entity_bundle_create()
Implements hook_entity_bundle_create().
File
-
core/
modules/ field_ui/ field_ui.module, line 122
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();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.