class EntityTestNoLoadStorage

Same name and namespace in other branches
  1. 11.x core/modules/system/tests/modules/entity_test/src/EntityTestNoLoadStorage.php \Drupal\entity_test\EntityTestNoLoadStorage

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

Hierarchy

Expanded class hierarchy of EntityTestNoLoadStorage

File

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

Namespace

Drupal\entity_test
View source
class EntityTestNoLoadStorage extends SqlContentEntityStorage {
  
  /**
   * {@inheritdoc}
   */
  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.