function EntityTestNoLoadStorage::load

Same name in other branches
  1. 9 core/modules/system/tests/modules/entity_test/src/EntityTestNoLoadStorage.php \Drupal\entity_test\EntityTestNoLoadStorage::load()
  2. 8.9.x core/modules/system/tests/modules/entity_test/src/EntityTestNoLoadStorage.php \Drupal\entity_test\EntityTestNoLoadStorage::load()
  3. 10 core/modules/system/tests/modules/entity_test/src/EntityTestNoLoadStorage.php \Drupal\entity_test\EntityTestNoLoadStorage::load()

Overrides EntityStorageBase::load

File

core/modules/system/tests/modules/entity_test/src/EntityTestNoLoadStorage.php, line 18

Class

EntityTestNoLoadStorage
Test storage class used to verify that no load operation is triggered.

Namespace

Drupal\entity_test

Code

public function load($id) {
    throw new EntityStorageException('No load operation is supposed to happen.');
}

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