3 namespace Drupal\Core\Entity;
5 use Drupal\Core\Field\FieldDefinitionInterface;
8 * Defines a null entity storage.
10 * Used for content entity types that have no storage.
12 class ContentEntityNullStorage extends ContentEntityStorageBase {
17 public function loadMultiple(array $ids = NULL) {
24 protected function doLoadMultiple(array $ids = NULL) {
30 public function load($id) {
37 public function loadRevision($revision_id) {
44 public function deleteRevision($revision_id) {
50 public function loadByProperties(array $values = []) {
57 public function delete(array $entities) {
63 protected function doDelete($entities) {
69 public function save(EntityInterface $entity) {
75 protected function getQueryServiceName() {
76 return 'entity.query.null';
82 protected function doLoadRevisionFieldItems($revision_id) {
88 protected function doSaveFieldItems(ContentEntityInterface $entity, array $names = []) {
94 protected function doDeleteFieldItems($entities) {
100 protected function doDeleteRevisionFieldItems(ContentEntityInterface $revision) {
106 protected function readFieldItemsToPurge(FieldDefinitionInterface $field_definition, $batch_size) {
113 protected function purgeFieldItems(ContentEntityInterface $entity, FieldDefinitionInterface $field_definition) {
119 protected function doSave($id, EntityInterface $entity) {
125 protected function has($id, EntityInterface $entity) {
131 public function countFieldData($storage_definition, $as_bool = FALSE) {
132 return $as_bool ? FALSE : 0;
138 public function hasData() {