KeyValueEntityStorage::MAX_ID_LENGTH

Length limit of the entity ID. File core/lib/Drupal/Core/Entity/KeyValueStore/KeyValueEntityStorage.php, line 29 Class KeyValueEntityStorage Provides a key value backend for entities. Namespace Drupal\Core\Entity\KeyValueStore Code const MAX_ID_LENGTH = 128;

KeyValueEntityStorage::loadRevision

public KeyValueEntityStorage::loadRevision($revision_id) Load a specific entity revision. Parameters int|string $revision_id: The revision id. Return value \Drupal\Core\Entity\EntityInterface|null The specified entity revision or NULL if not found. Overrides EntityStorageInterface::loadRevision File core/lib/Drupal/Core/Entity/KeyValueStore/KeyValueEntityStorage.php, line 129 Class KeyValueEntityStorage Provides a key value backend for entities. Namespace Drupal\Core\Entity\KeyValueSt

KeyValueEntityStorage::has

protected KeyValueEntityStorage::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/KeyValueStore/KeyValueEntityStorage.php, line 186 Class KeyValueEntityStorage Provides a key value backend for entities. Namespace Drupal\Core\Entity\KeyValueStore

KeyValueEntityStorage::getQueryServiceName

protected KeyValueEntityStorage::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/KeyValueStore/KeyValueEntityStorage.php, line 193 Class KeyValueEntityStorage Provides a key value backend for entities. Namespace Drupal\Core\Entity\KeyValueStore Code protected function getQueryServi

KeyValueEntityStorage::doSave

protected KeyValueEntityStorage::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 EntityStorageBase::doSave File core/lib/Drupal/Core/Entity/KeyValueStore/KeyValueEntit

KeyValueEntityStorage::doLoadMultiple

public KeyValueEntityStorage::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 EntityStorag

KeyValueEntityStorage::doDelete

public KeyValueEntityStorage::doDelete($entities) Performs storage-specific entity deletion. Parameters \Drupal\Core\Entity\EntityInterface[] $entities: An array of entity objects to delete. Overrides EntityStorageBase::doDelete File core/lib/Drupal/Core/Entity/KeyValueStore/KeyValueEntityStorage.php, line 143 Class KeyValueEntityStorage Provides a key value backend for entities. Namespace Drupal\Core\Entity\KeyValueStore Code public function doDelete($entities) { $entity_ids = arra

KeyValueEntityStorage::doCreate

public KeyValueEntityStorage::doCreate(array $values = array()) Performs storage-specific creation of entities. Parameters array $values: An array of values to set, keyed by property name. Return value \Drupal\Core\Entity\EntityInterface Overrides EntityStorageBase::doCreate File core/lib/Drupal/Core/Entity/KeyValueStore/KeyValueEntityStorage.php, line 89 Class KeyValueEntityStorage Provides a key value backend for entities. Namespace Drupal\Core\Entity\KeyValueStore Code public func

KeyValueEntityStorage::deleteRevision

public KeyValueEntityStorage::deleteRevision($revision_id) Delete a specific entity revision. A revision can only be deleted if it's not the currently active one. Parameters int $revision_id: The revision id. Overrides EntityStorageInterface::deleteRevision File core/lib/Drupal/Core/Entity/KeyValueStore/KeyValueEntityStorage.php, line 136 Class KeyValueEntityStorage Provides a key value backend for entities. Namespace Drupal\Core\Entity\KeyValueStore Code public function deleteRevisio

KeyValueEntityStorage::createInstance

public static KeyValueEntityStorage::createInstance(ContainerInterface $container, EntityTypeInterface $entity_type) Instantiates a new instance of this entity handler. This is a factory method that returns a new instance of this object. The factory should pass any needed dependencies into the constructor of this object, but not the container itself. Every call to this method must return a new instance of this object; that is, it may not implement a singleton. Parameters \Symfony\Component\Dep