function hook_ENTITY_TYPE_storage_load in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/lib/Drupal/Core/Entity/entity.api.php \hook_ENTITY_TYPE_storage_load()
Act on content entities of a given type when loaded from the storage.
The results of this hook will be cached if the entity type supports it.
Parameters
\Drupal\Core\Entity\EntityInterface[] $entities: The entities keyed by entity ID.
See also
Related topics
3 functions implement hook_ENTITY_TYPE_storage_load()
Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.
- comment_entity_storage_load in core/
modules/ comment/ comment.module - Implements hook_entity_storage_load().
- forum_node_storage_load in core/
modules/ forum/ forum.module - Implements hook_ENTITY_TYPE_storage_load() for node entities.
- rdf_comment_storage_load in core/
modules/ rdf/ rdf.module - Implements hook_ENTITY_TYPE_storage_load() for comment entities.
File
- core/
lib/ Drupal/ Core/ Entity/ entity.api.php, line 878 - Hooks and documentation related to entities.
Code
function hook_ENTITY_TYPE_storage_load(array $entities) {
foreach ($entities as $entity) {
$entity->foo = mymodule_add_something_uncached($entity);
}
}