Security update for Core, with self-updated composer
[yaffs-website] / web / core / modules / system / tests / modules / entity_test / src / EntityTestNoLoadStorage.php
1 <?php
2
3 namespace Drupal\entity_test;
4
5 use Drupal\Core\Entity\EntityStorageException;
6 use Drupal\Core\Entity\Sql\SqlContentEntityStorage;
7
8 /**
9  * Test storage class used to verify that no load operation is triggered.
10  */
11 class EntityTestNoLoadStorage extends SqlContentEntityStorage {
12
13   /**
14    * {@inheritdoc}
15    */
16   public function load($id) {
17     throw new EntityStorageException('No load operation is supposed to happen.');
18   }
19
20 }