public function EntityBase::postCreate in Drupal 8
Same name and namespace in other branches
- 9 core/lib/Drupal/Core/Entity/EntityBase.php \Drupal\Core\Entity\EntityBase::postCreate()
- 10 core/lib/Drupal/Core/Entity/EntityBase.php \Drupal\Core\Entity\EntityBase::postCreate()
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 EntityBase::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 EntityBase::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/ EntityBase.php, line 460
Class
- EntityBase
- Defines a base entity class.
Namespace
Drupal\Core\EntityCode
public function postCreate(EntityStorageInterface $storage) {
}