public function ContentEntityBase::postCreate in Zircon Profile 8.0
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Entity/ContentEntityBase.php \Drupal\Core\Entity\ContentEntityBase::postCreate()
Acts on an entity after it is created but before hooks are invoked.
Parameters
\Drupal\Core\Entity\EntityStorageInterface $storage: The entity storage object.
Overrides Entity::postCreate
File
- core/
lib/ Drupal/ Core/ Entity/ ContentEntityBase.php, line 257 - Contains \Drupal\Core\Entity\ContentEntityBase.
Class
- ContentEntityBase
- Implements Entity Field API specific enhancements to the Entity class.
Namespace
Drupal\Core\EntityCode
public function postCreate(EntityStorageInterface $storage) {
$this->newRevision = TRUE;
}