diff --git a/core/modules/field/lib/Drupal/field/Plugin/Core/Entity/Field.php b/core/modules/field/lib/Drupal/field/Plugin/Core/Entity/Field.php index a8c1bd2..34b859c 100644 --- a/core/modules/field/lib/Drupal/field/Plugin/Core/Entity/Field.php +++ b/core/modules/field/lib/Drupal/field/Plugin/Core/Entity/Field.php @@ -310,15 +310,6 @@ public function preSave(EntityStorageControllerInterface $storage_controller) { public function postSave(EntityStorageControllerInterface $storage_controller, $update = TRUE) { // Clear the cache. field_cache_clear(); - - // Invoke hook_field_create_field() / hook_field_update_field() after - // the cache is cleared for API consistency. - if ($update) { - \Drupal::moduleHandler()->invokeAll('field_update_field', array($this, $this->original)); - } - else { - \Drupal::moduleHandler()->invokeAll('field_create_field', array($this)); - } } /** diff --git a/core/modules/field/lib/Drupal/field/Plugin/Core/Entity/FieldInstance.php b/core/modules/field/lib/Drupal/field/Plugin/Core/Entity/FieldInstance.php index 741d3be..b556973 100644 --- a/core/modules/field/lib/Drupal/field/Plugin/Core/Entity/FieldInstance.php +++ b/core/modules/field/lib/Drupal/field/Plugin/Core/Entity/FieldInstance.php @@ -375,16 +375,6 @@ public function preSave(EntityStorageControllerInterface $storage_controller) { public function postSave(EntityStorageControllerInterface $storage_controller, $update = TRUE) { // Clear the cache. field_cache_clear(); - - // Invoke hook_field_create_instance() / hook_field_update_instance() after - // the cache is cleared for API consistency. - $module_handler = \Drupal::moduleHandler(); - if ($update) { - $module_handler->invokeAll('field_update_instance', array($this, $this->original)); - } - else { - $module_handler->invokeAll('field_create_instance', array($this)); - } } /**