function ContentEntityBase::postCreate
Same name in other branches
- 8.9.x core/lib/Drupal/Core/Entity/ContentEntityBase.php \Drupal\Core\Entity\ContentEntityBase::postCreate()
- 10 core/lib/Drupal/Core/Entity/ContentEntityBase.php \Drupal\Core\Entity\ContentEntityBase::postCreate()
- 11.x core/lib/Drupal/Core/Entity/ContentEntityBase.php \Drupal\Core\Entity\ContentEntityBase::postCreate()
Overrides EntityBase::postCreate
1 call to ContentEntityBase::postCreate()
- EntityTestBundleClass::postCreate in core/
modules/ system/ tests/ modules/ entity_test_bundle_class/ src/ Entity/ EntityTestBundleClass.php - Acts on a created entity before hooks are invoked.
1 method overrides ContentEntityBase::postCreate()
- EntityTestBundleClass::postCreate in core/
modules/ system/ tests/ modules/ entity_test_bundle_class/ src/ Entity/ EntityTestBundleClass.php - Acts on a created entity before hooks are invoked.
File
-
core/
lib/ Drupal/ Core/ Entity/ ContentEntityBase.php, line 284
Class
- ContentEntityBase
- Implements Entity Field API specific enhancements to the Entity class.
Namespace
Drupal\Core\EntityCode
public function postCreate(EntityStorageInterface $storage) {
$this->newRevision = TRUE;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.