8.3.x EntityInterface.php public EntityInterface::postCreate(EntityStorageInterface $storage)
8.0.x EntityInterface.php public EntityInterface::postCreate(EntityStorageInterface $storage)
8.1.x EntityInterface.php public EntityInterface::postCreate(EntityStorageInterface $storage)
8.2.x EntityInterface.php public EntityInterface::postCreate(EntityStorageInterface $storage)
8.4.x EntityInterface.php 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.

Overrides EntityInterface::postCreate

See also

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

3 methods override EntityInterface::postCreate()
Entity::postCreate in core/lib/Drupal/Core/Entity/Entity.php
Acts on a created entity before hooks are invoked.
EntityInterface::postCreate in core/lib/Drupal/Core/Entity/EntityInterface.php
Acts on a created entity before hooks are invoked.
ViewUI::postCreate in core/modules/views_ui/src/ViewUI.php
Acts on a created entity before hooks are invoked.

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);