X-Git-Url: http://www.aleph1.co.uk/gitweb/?a=blobdiff_plain;ds=sidebyside;f=vendor%2Fchi-teck%2Fdrupal-code-generator%2Ftemplates%2Fd8%2Fhook%2Fentity_bundle_create.twig;fp=vendor%2Fchi-teck%2Fdrupal-code-generator%2Ftemplates%2Fd8%2Fhook%2Fentity_bundle_create.twig;h=dc83623cf02732489e5bba5ed5bdf3982fdd8463;hb=af6d1fb995500ae68849458ee10d66abbdcfb252;hp=0000000000000000000000000000000000000000;hpb=680c79a86e3ed402f263faeac92e89fb6d9edcc0;p=yaffs-website diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/entity_bundle_create.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/entity_bundle_create.twig new file mode 100644 index 000000000..dc83623cf --- /dev/null +++ b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/entity_bundle_create.twig @@ -0,0 +1,8 @@ +/** + * Implements hook_entity_bundle_create(). + */ +function {{ machine_name }}_entity_bundle_create($entity_type_id, $bundle) { + // When a new bundle is created, the menu needs to be rebuilt to add the + // Field UI menu item tabs. + \Drupal::service('router.builder')->setRebuildNeeded(); +}