ContentEntityStorageBase::doLoadRevisionFieldItems

abstract protected ContentEntityStorageBase::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. File core/lib/Drupal/Core/Entity/ContentEntityStorageBase.php, line 239 Class ContentEntityStorageBase Base class for content entity storage handlers. Namespace Drupal\Core\Entit

ContentEntityStorageBase::doDeleteRevisionFieldItems

abstract protected ContentEntityStorageBase::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. File core/lib/Drupal/Core/Entity/ContentEntityStorageBase.php, line 353 Class ContentEntityStorageBase Base class for content entity storage handlers. Namespace Drupal\Core\Entity Code abstract protected function doD

ContentEntityStorageBase::doDeleteFieldItems

abstract protected ContentEntityStorageBase::doDeleteFieldItems($entities) Deletes entity field values from the storage. Parameters \Drupal\Core\Entity\ContentEntityInterface[] $entities: An array of entity objects to be deleted. File core/lib/Drupal/Core/Entity/ContentEntityStorageBase.php, line 329 Class ContentEntityStorageBase Base class for content entity storage handlers. Namespace Drupal\Core\Entity Code abstract protected function doDeleteFieldItems($entities);

ContentEntityStorageBase::doDelete

protected ContentEntityStorageBase::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/ContentEntityStorageBase.php, line 315 Class ContentEntityStorageBase Base class for content entity storage handlers. Namespace Drupal\Core\Entity Code protected function doDelete($entities) { /** @var \Drupal\Core\Enti

ContentEntityStorageBase::doCreate

protected ContentEntityStorageBase::doCreate(array $values) 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/ContentEntityStorageBase.php, line 78 Class ContentEntityStorageBase Base class for content entity storage handlers. Namespace Drupal\Core\Entity Code protected function doCreate(arra

ContentEntityStorageBase::deleteRevision

public ContentEntityStorageBase::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/ContentEntityStorageBase.php, line 334 Class ContentEntityStorageBase Base class for content entity storage handlers. Namespace Drupal\Core\Entity Code public function deleteRevision($revision_id

ContentEntityStorageBase::createTranslation

public ContentEntityStorageBase::createTranslation(ContentEntityInterface $entity, $langcode, array $values = []) Constructs a new entity translation object, without permanently saving it. Parameters \Drupal\Core\Entity\ContentEntityInterface $entity: The entity object being translated. string $langcode: The translation language code. array $values: (optional) An associative array of initial field values keyed by field name. If none is provided default values will be applied. Return value \Dr

ContentEntityStorageBase::createInstance

public static ContentEntityStorageBase::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\

ContentEntityStorageBase::cleanIds

protected ContentEntityStorageBase::cleanIds(array $ids) Ensures integer entity IDs are valid. The identifier sanitization provided by this method has been introduced as Drupal used to rely on the database to facilitate this, which worked correctly with MySQL but led to errors with other DBMS such as PostgreSQL. Parameters array $ids: The entity IDs to verify. Return value array The sanitized list of entity IDs. File core/lib/Drupal/Core/Entity/ContentEntityStorageBase.php, line 561 Class

ContentEntityStorageBase::buildCacheId

protected ContentEntityStorageBase::buildCacheId($id) Builds the cache ID for the passed in entity ID. Parameters int $id: Entity ID for which the cache ID should be built. Return value string Cache ID that can be passed to the cache backend. File core/lib/Drupal/Core/Entity/ContentEntityStorageBase.php, line 658 Class ContentEntityStorageBase Base class for content entity storage handlers. Namespace Drupal\Core\Entity Code protected function buildCacheId($id) { return "values:{$th