X-Git-Url: http://www.aleph1.co.uk/gitweb/?a=blobdiff_plain;ds=sidebyside;f=web%2Fcore%2Flib%2FDrupal%2FCore%2FEntity%2FEntityBundleListener.php;fp=web%2Fcore%2Flib%2FDrupal%2FCore%2FEntity%2FEntityBundleListener.php;h=e37317a020c06f62f9044dcc91a3ff8d7d980b9f;hb=0bf8d09d2542548982e81a441b1f16e75873a04f;hp=e3b219b39c17d8f31b5a24b7e8c890ebc3741dbf;hpb=74df008bdbb3a11eeea356744f39b802369bda3c;p=yaffs-website diff --git a/web/core/lib/Drupal/Core/Entity/EntityBundleListener.php b/web/core/lib/Drupal/Core/Entity/EntityBundleListener.php index e3b219b39..e37317a02 100644 --- a/web/core/lib/Drupal/Core/Entity/EntityBundleListener.php +++ b/web/core/lib/Drupal/Core/Entity/EntityBundleListener.php @@ -68,6 +68,7 @@ class EntityBundleListener implements EntityBundleListenerInterface { } // Invoke hook_entity_bundle_create() hook. $this->moduleHandler->invokeAll('entity_bundle_create', [$entity_type_id, $bundle]); + $this->entityFieldManager->clearCachedFieldDefinitions(); } /**