Upgraded drupal core with security updates
[yaffs-website] / web / core / lib / Drupal / Core / Entity / ContentEntityNullStorage.php
1 <?php
2
3 namespace Drupal\Core\Entity;
4
5 use Drupal\Core\Field\FieldDefinitionInterface;
6
7 /**
8  * Defines a null entity storage.
9  *
10  * Used for content entity types that have no storage.
11  */
12 class ContentEntityNullStorage extends ContentEntityStorageBase {
13
14   /**
15    * {@inheritdoc}
16    */
17   public function loadMultiple(array $ids = NULL) {
18     return [];
19   }
20
21   /**
22    * {@inheritdoc}
23    */
24   protected function doLoadMultiple(array $ids = NULL) {
25   }
26
27   /**
28    * {@inheritdoc}
29    */
30   public function load($id) {
31     return NULL;
32   }
33
34   /**
35    * {@inheritdoc}
36    */
37   public function loadRevision($revision_id) {
38     return NULL;
39   }
40
41   /**
42    * {@inheritdoc}
43    */
44   public function deleteRevision($revision_id) {
45   }
46
47   /**
48    * {@inheritdoc}
49    */
50   public function loadByProperties(array $values = []) {
51     return [];
52   }
53
54   /**
55    * {@inheritdoc}
56    */
57   public function delete(array $entities) {
58   }
59
60   /**
61    * {@inheritdoc}
62    */
63   protected function doDelete($entities) {
64   }
65
66   /**
67    * {@inheritdoc}
68    */
69   public function save(EntityInterface $entity) {
70   }
71
72   /**
73    * {@inheritdoc}
74    */
75   protected function getQueryServiceName() {
76     return 'entity.query.null';
77   }
78
79   /**
80    * {@inheritdoc}
81    */
82   protected function doLoadRevisionFieldItems($revision_id) {
83   }
84
85   /**
86    * {@inheritdoc}
87    */
88   protected function doSaveFieldItems(ContentEntityInterface $entity, array $names = []) {
89   }
90
91   /**
92    * {@inheritdoc}
93    */
94   protected function doDeleteFieldItems($entities) {
95   }
96
97   /**
98    * {@inheritdoc}
99    */
100   protected function doDeleteRevisionFieldItems(ContentEntityInterface $revision) {
101   }
102
103   /**
104    * {@inheritdoc}
105    */
106   protected function readFieldItemsToPurge(FieldDefinitionInterface $field_definition, $batch_size) {
107     return [];
108   }
109
110   /**
111    * {@inheritdoc}
112    */
113   protected function purgeFieldItems(ContentEntityInterface $entity, FieldDefinitionInterface $field_definition) {
114   }
115
116   /**
117    * {@inheritdoc}
118    */
119   protected function doSave($id, EntityInterface $entity) {
120   }
121
122   /**
123    * {@inheritdoc}
124    */
125   protected function has($id, EntityInterface $entity) {
126   }
127
128   /**
129    * {@inheritdoc}
130    */
131   public function countFieldData($storage_definition, $as_bool = FALSE) {
132     return $as_bool ? FALSE : 0;
133   }
134
135   /**
136    * {@inheritdoc}
137    */
138   public function hasData() {
139     return FALSE;
140   }
141
142 }