EntityInterface::postCreate

public EntityInterface::postCreate(EntityStorageInterface $storage)

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 Entity CRUD topic for more information.

Parameters

\Drupal\Core\Entity\EntityStorageInterface $storage: The entity storage object.

See also

\Drupal\Core\Entity\EntityInterface::create()

File

core/lib/Drupal/Core/Entity/EntityInterface.php, line 354

Class

EntityInterface
Defines a common interface for all entity objects.

Namespace

Drupal\Core\Entity

Code

public function postCreate(EntityStorageInterface $storage);
doc_Drupal
2016-10-29 09:06:42
Comments
Leave a Comment

Please login to continue.