Act on entity_bundle_create().
This hook is invoked after the operation has been performed.
string $entity_type: The type of $entity; e.g. 'node' or 'user'.
string $bundle: The name of the bundle.
Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.
function hook_entity_bundle_create($entity_type, $bundle) {
// When a new bundle is created, the menu needs to be rebuilt to add the
// Field UI menu item tabs.
Drupal::state()
->set('menu_rebuild_needed', TRUE);
}