Loading core/lib/Drupal/Core/Entity/entity.api.php +6 −2 Original line number Diff line number Diff line Loading @@ -956,7 +956,9 @@ function hook_entity_bundle_delete($entity_type_id, $bundle): void { /** * Acts when creating a new entity. * * This hook runs after a new entity object has just been instantiated. * This hook runs after a new entity object has been instantiated, but before * it is stored in the database. To react to an entity being stored for the * first time, use hook_entity_insert(). * * @param \Drupal\Core\Entity\EntityInterface $entity * The entity object. Loading @@ -971,7 +973,9 @@ function hook_entity_create(\Drupal\Core\Entity\EntityInterface $entity): void { /** * Acts when creating a new entity of a specific type. * * This hook runs after a new entity object has just been instantiated. * This hook runs after a new entity object has been instantiated, but before * it is stored in the database. To react to an entity being stored for the * first time, use hook_entity_insert(). * * @param \Drupal\Core\Entity\EntityInterface $entity * The entity object. Loading Loading
core/lib/Drupal/Core/Entity/entity.api.php +6 −2 Original line number Diff line number Diff line Loading @@ -956,7 +956,9 @@ function hook_entity_bundle_delete($entity_type_id, $bundle): void { /** * Acts when creating a new entity. * * This hook runs after a new entity object has just been instantiated. * This hook runs after a new entity object has been instantiated, but before * it is stored in the database. To react to an entity being stored for the * first time, use hook_entity_insert(). * * @param \Drupal\Core\Entity\EntityInterface $entity * The entity object. Loading @@ -971,7 +973,9 @@ function hook_entity_create(\Drupal\Core\Entity\EntityInterface $entity): void { /** * Acts when creating a new entity of a specific type. * * This hook runs after a new entity object has just been instantiated. * This hook runs after a new entity object has been instantiated, but before * it is stored in the database. To react to an entity being stored for the * first time, use hook_entity_insert(). * * @param \Drupal\Core\Entity\EntityInterface $entity * The entity object. Loading