Commit c962bd0a authored by alexpott's avatar alexpott

Issue #2705921 by jmk61, Vinay15, chgasparoto, jhodgdon, vegantriathlete,...

Issue #2705921 by jmk61, Vinay15, chgasparoto, jhodgdon, vegantriathlete, kjl16, joachim: docs for postCreate() should clarify create does not mean save
parent 3288a179
......@@ -339,10 +339,17 @@ public function postSave(EntityStorageInterface $storage, $update = TRUE);
public static function preCreate(EntityStorageInterface $storage, array &$values);
/**
* Acts on an entity after it is created but before hooks are invoked.
* Acts on a created entity before hooks are invoked.
*
* Used after the entity is created, but before saving the entity and before
* any of the presave hooks are invoked.
*
* See the @link entity_crud Entity CRUD topic @endlink for more information.
*
* @param \Drupal\Core\Entity\EntityStorageInterface $storage
* The entity storage object.
*
* @see \Drupal\Core\Entity\EntityInterface::create()
*/
public function postCreate(EntityStorageInterface $storage);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment