function EntityTestBundleClass::postLoad
Same name in other branches
- 10 core/modules/system/tests/modules/entity_test_bundle_class/src/Entity/EntityTestBundleClass.php \Drupal\entity_test_bundle_class\Entity\EntityTestBundleClass::postLoad()
- 11.x core/modules/system/tests/modules/entity_test_bundle_class/src/Entity/EntityTestBundleClass.php \Drupal\entity_test_bundle_class\Entity\EntityTestBundleClass::postLoad()
Overrides EntityBase::postLoad
File
-
core/
modules/ system/ tests/ modules/ entity_test_bundle_class/ src/ Entity/ EntityTestBundleClass.php, line 92
Class
- EntityTestBundleClass
- The bundle class for the bundle_class bundle of the entity_test entity.
Namespace
Drupal\entity_test_bundle_class\EntityCode
public static function postLoad(EntityStorageInterface $storage, array &$entities) {
parent::postLoad($storage, $entities);
self::$postLoadCount++;
self::$postLoadEntitiesCount[] = count($entities);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.