Commit 9f66234e authored by catch's avatar catch
Browse files

task: #3309169 hook_entity_create() should clearly state the entity is not yet stored

By: joachim
By: acbramley
By: priyankapatel
By: dcam
(cherry picked from commit ee86116f)
parent 30adfbbe
Loading
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -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.
@@ -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.