function EntityTestBundleClass::postCreate

Same name in other branches
  1. 10 core/modules/system/tests/modules/entity_test_bundle_class/src/Entity/EntityTestBundleClass.php \Drupal\entity_test_bundle_class\Entity\EntityTestBundleClass::postCreate()
  2. 11.x core/modules/system/tests/modules/entity_test_bundle_class/src/Entity/EntityTestBundleClass.php \Drupal\entity_test_bundle_class\Entity\EntityTestBundleClass::postCreate()

Overrides ContentEntityBase::postCreate

File

core/modules/system/tests/modules/entity_test_bundle_class/src/Entity/EntityTestBundleClass.php, line 68

Class

EntityTestBundleClass
The bundle class for the bundle_class bundle of the entity_test entity.

Namespace

Drupal\entity_test_bundle_class\Entity

Code

public function postCreate(EntityStorageInterface $storage) {
    parent::postCreate($storage);
    $this->postCreateCount++;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.