ContentEntityNullStorage::load

public ContentEntityNullStorage::load($id) Loads one entity. Parameters mixed $id: The ID of the entity to load. Return value \Drupal\Core\Entity\EntityInterface|null An entity object. NULL if no matching entity is found. Overrides EntityStorageBase::load File core/lib/Drupal/Core/Entity/ContentEntityNullStorage.php, line 30 Class ContentEntityNullStorage Defines a null entity storage. Namespace Drupal\Core\Entity Code public function load($id) { return NULL; }

ContentEntityNullStorage::hasData

public ContentEntityNullStorage::hasData() Determines if the storage contains any data. Return value bool TRUE if the storage contains data, FALSE if not. Overrides ContentEntityStorageBase::hasData File core/lib/Drupal/Core/Entity/ContentEntityNullStorage.php, line 138 Class ContentEntityNullStorage Defines a null entity storage. Namespace Drupal\Core\Entity Code public function hasData() { return FALSE; }

ContentEntityNullStorage::has

protected ContentEntityNullStorage::has($id, EntityInterface $entity) Determines if this entity already exists in storage. Parameters int|string $id: The original entity ID. \Drupal\Core\Entity\EntityInterface $entity: The entity being saved. Return value bool Overrides EntityStorageBase::has File core/lib/Drupal/Core/Entity/ContentEntityNullStorage.php, line 125 Class ContentEntityNullStorage Defines a null entity storage. Namespace Drupal\Core\Entity Code protected function has($id

ContentEntityNullStorage::getQueryServiceName

protected ContentEntityNullStorage::getQueryServiceName() Gets the name of the service for the query for this entity storage. Return value string The name of the service for the query for this entity storage. Overrides EntityStorageBase::getQueryServiceName File core/lib/Drupal/Core/Entity/ContentEntityNullStorage.php, line 75 Class ContentEntityNullStorage Defines a null entity storage. Namespace Drupal\Core\Entity Code protected function getQueryServiceName() { return 'entity.quer

ContentEntityNullStorage::doSaveFieldItems

protected ContentEntityNullStorage::doSaveFieldItems(ContentEntityInterface $entity, array $names = []) Writes entity field values to the storage. This method is responsible for allocating entity and revision identifiers and updating the entity object with their values. Parameters \Drupal\Core\Entity\ContentEntityInterface $entity: The entity object. string[] $names: (optional) The name of the fields to be written to the storage. If an empty value is passed all field values are saved. Override

ContentEntityNullStorage::doSave

protected ContentEntityNullStorage::doSave($id, EntityInterface $entity) Performs storage-specific saving of the entity. Parameters int|string $id: The original entity ID. \Drupal\Core\Entity\EntityInterface $entity: The entity to save. Return value bool|int If the record insert or update failed, returns FALSE. If it succeeded, returns SAVED_NEW or SAVED_UPDATED, depending on the operation performed. Overrides ContentEntityStorageBase::doSave File core/lib/Drupal/Core/Entity/ContentEntityNull

ContentEntityNullStorage::doLoadRevisionFieldItems

protected ContentEntityNullStorage::doLoadRevisionFieldItems($revision_id) Actually loads revision field item values from the storage. Parameters int|string $revision_id: The revision identifier. Return value \Drupal\Core\Entity\EntityInterface|null The specified entity revision or NULL if not found. Overrides ContentEntityStorageBase::doLoadRevisionFieldItems File core/lib/Drupal/Core/Entity/ContentEntityNullStorage.php, line 82 Class ContentEntityNullStorage Defines a null entity stora

ContentEntityNullStorage::doLoadMultiple

protected ContentEntityNullStorage::doLoadMultiple(array $ids = NULL) Performs storage-specific loading of entities. Override this method to add custom functionality directly after loading. This is always called, while self::postLoad() is only called when there are actual results. Parameters array|null $ids: (optional) An array of entity IDs, or NULL to load all entities. Return value \Drupal\Core\Entity\EntityInterface[] Associative array of entities, keyed on the entity ID. Overrides Entity

ContentEntityNullStorage::doDeleteRevisionFieldItems

protected ContentEntityNullStorage::doDeleteRevisionFieldItems(ContentEntityInterface $revision) Deletes field values of an entity revision from the storage. Parameters \Drupal\Core\Entity\ContentEntityInterface $revision: An entity revision object to be deleted. Overrides ContentEntityStorageBase::doDeleteRevisionFieldItems File core/lib/Drupal/Core/Entity/ContentEntityNullStorage.php, line 100 Class ContentEntityNullStorage Defines a null entity storage. Namespace Drupal\Core\Entity

ContentEntityNullStorage::doDeleteFieldItems

protected ContentEntityNullStorage::doDeleteFieldItems($entities) Deletes entity field values from the storage. Parameters \Drupal\Core\Entity\ContentEntityInterface[] $entities: An array of entity objects to be deleted. Overrides ContentEntityStorageBase::doDeleteFieldItems File core/lib/Drupal/Core/Entity/ContentEntityNullStorage.php, line 94 Class ContentEntityNullStorage Defines a null entity storage. Namespace Drupal\Core\Entity Code protected function doDeleteFieldItems($entitie