2 * Implements hook_entity_bundle_create().
4 function {{ machine_name }}_entity_bundle_create($entity_type_id, $bundle) {
5 // When a new bundle is created, the menu needs to be rebuilt to add the
6 // Field UI menu item tabs.
7 \Drupal::service('router.builder')->setRebuildNeeded();