function hook_ENTITY_TYPE_load in Coder 8.2
Same name and namespace in other branches
- 8.3 tests/Drupal/good/good.api.php \hook_ENTITY_TYPE_load()
- 8.3.x tests/Drupal/good/good.api.php \hook_ENTITY_TYPE_load()
Act on entities of a specific type when loaded.
Parameters
array $entities: The entities keyed by entity ID.
File
- coder_sniffer/
Drupal/ Test/ good/ good.api.php, line 134 - Hooks provided by the Locale module.
Code
function hook_ENTITY_TYPE_load(array $entities) {
foreach ($entities as $entity) {
$entity->foo = mymodule_add_something($entity);
}
}