8.2.x Entity.php public Entity::postCreate(EntityStorageInterface $storage)
8.0.x Entity.php public Entity::postCreate(EntityStorageInterface $storage)
8.1.x Entity.php public Entity::postCreate(EntityStorageInterface $storage)
8.3.x Entity.php public Entity::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 calls to Entity::postCreate()
FieldConfigBase::postCreate in core/lib/Drupal/Core/Field/FieldConfigBase.php
Acts on a created entity before hooks are invoked.
SearchPage::postCreate in core/modules/search/src/Entity/SearchPage.php
Acts on a created entity before hooks are invoked.
View::postCreate in core/modules/views/src/Entity/View.php
Acts on a created entity before hooks are invoked.
4 methods override Entity::postCreate()
ContentEntityBase::postCreate in core/lib/Drupal/Core/Entity/ContentEntityBase.php
Acts on a created entity before hooks are invoked.
FieldConfigBase::postCreate in core/lib/Drupal/Core/Field/FieldConfigBase.php
Acts on a created entity before hooks are invoked.
SearchPage::postCreate in core/modules/search/src/Entity/SearchPage.php
Acts on a created entity before hooks are invoked.
View::postCreate in core/modules/views/src/Entity/View.php
Acts on a created entity before hooks are invoked.

File

core/lib/Drupal/Core/Entity/Entity.php, line 429

Class

Entity
Defines a base entity class.

Namespace

Drupal\Core\Entity

Code

public function postCreate(EntityStorageInterface $storage) {
}