function EntityInterface::postCreate
Same name in other branches
- 9 core/lib/Drupal/Core/Entity/EntityInterface.php \Drupal\Core\Entity\EntityInterface::postCreate()
- 10 core/lib/Drupal/Core/Entity/EntityInterface.php \Drupal\Core\Entity\EntityInterface::postCreate()
- 11.x core/lib/Drupal/Core/Entity/EntityInterface.php \Drupal\Core\Entity\EntityInterface::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.
See also
\Drupal\Core\Entity\EntityInterface::create()
2 methods override EntityInterface::postCreate()
- EntityBase::postCreate in core/
lib/ Drupal/ Core/ Entity/ EntityBase.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 357
Class
- EntityInterface
- Defines a common interface for all entity objects.
Namespace
Drupal\Core\EntityCode
public function postCreate(EntityStorageInterface $storage);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.