EntityTestNoLoadStorage.php in Drupal 9
Same filename and directory in other branches
Namespace
Drupal\entity_testFile
core/modules/system/tests/modules/entity_test/src/EntityTestNoLoadStorage.phpView source
<?php
namespace Drupal\entity_test;
use Drupal\Core\Entity\EntityStorageException;
use Drupal\Core\Entity\Sql\SqlContentEntityStorage;
/**
* Test storage class used to verify that no load operation is triggered.
*/
class EntityTestNoLoadStorage extends SqlContentEntityStorage {
/**
* {@inheritdoc}
*/
public function load($id) {
throw new EntityStorageException('No load operation is supposed to happen.');
}
}
Classes
Name![]() |
Description |
---|---|
EntityTestNoLoadStorage | Test storage class used to verify that no load operation is triggered. |