function EntityCrudHookTest::entityLoad

Implements hook_entity_load().

Attributes

#[Hook('entity_load')]

File

core/tests/Drupal/KernelTests/Core/Entity/EntityCrudHookTest.php, line 776

Class

EntityCrudHookTest
Tests entity CRUD via hooks.

Namespace

Drupal\KernelTests\Core\Entity

Code

public function entityLoad(array $entities, $type) : void {
  $GLOBALS['entity_crud_hook_test'][] = 'entity_crud_hook_test_entity_load called for type ' . $type;
}

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