You are here

interface ContentEntityStorageInterface in Multiversion 8.2

Same name and namespace in other branches
  1. 8 src/Entity/Storage/ContentEntityStorageInterface.php \Drupal\multiversion\Entity\Storage\ContentEntityStorageInterface

Hierarchy

Expanded class hierarchy of ContentEntityStorageInterface

All classes that implement ContentEntityStorageInterface

11 files declare their use of ContentEntityStorageInterface
CommentStatistics.php in src/CommentStatistics.php
CommentStorage.php in src/Entity/Storage/Sql/CommentStorage.php
ContentEntityStorage.php in src/Entity/Storage/Sql/ContentEntityStorage.php
EntityStorageTest.php in src/Tests/EntityStorageTest.php
FileStorage.php in src/Entity/Storage/Sql/FileStorage.php

... See full list

File

src/Entity/Storage/ContentEntityStorageInterface.php, line 8

Namespace

Drupal\multiversion\Entity\Storage
View source
interface ContentEntityStorageInterface extends EntityStorageInterface {

  /**
   * What workspace to query.
   *
   * @param integer $id
   * @return \Drupal\multiversion\Entity\Storage\ContentEntityStorageInterface
   */
  public function useWorkspace($id);

  /**
   * @param integer $id
   * @return \Drupal\Core\Entity\ContentEntityInterface|null
   */
  public function loadDeleted($id);

  /**
   * @param array $ids
   * @return \Drupal\Core\Entity\ContentEntityInterface[]
   */
  public function loadMultipleDeleted(array $ids = NULL);

  /**
   * @param array $entities
   */
  public function purge(array $entities);

  /**
   * Save the given entity without forcing a new revision.
   *
   * @param \Drupal\Core\Entity\EntityInterface $entity
   *   Entity that should be saved.
   *
   * @return
   *   SAVED_NEW or SAVED_UPDATED is returned depending on the operation
   *   performed.
   *
   * @throws \Drupal\Core\Entity\EntityStorageException
   *   In case of failures, an exception is thrown.
   */
  public function saveWithoutForcingNewRevision(EntityInterface $entity);

}

Members

Namesort descending Modifiers Type Description Overrides
ContentEntityStorageInterface::loadDeleted public function
ContentEntityStorageInterface::loadMultipleDeleted public function
ContentEntityStorageInterface::purge public function
ContentEntityStorageInterface::saveWithoutForcingNewRevision public function Save the given entity without forcing a new revision.
ContentEntityStorageInterface::useWorkspace public function What workspace to query.
EntityStorageInterface::create public function Constructs a new entity object, without permanently saving it. 1
EntityStorageInterface::delete public function Deletes permanently saved entities. 1
EntityStorageInterface::deleteRevision public function Delete a specific entity revision. 4
EntityStorageInterface::FIELD_LOAD_CURRENT constant Load the most recent version of an entity's field data.
EntityStorageInterface::FIELD_LOAD_REVISION constant Load the version of an entity's field data specified in the entity.
EntityStorageInterface::getAggregateQuery public function Gets an aggregated query instance. 1
EntityStorageInterface::getEntityType public function Gets the entity type definition. 1
EntityStorageInterface::getEntityTypeId public function Gets the entity type ID. 1
EntityStorageInterface::getQuery public function Gets an entity query instance. 1
EntityStorageInterface::hasData public function Determines if the storage contains any data. 1
EntityStorageInterface::load public function Loads one entity. 1
EntityStorageInterface::loadByProperties public function Load entities by their property values. 1
EntityStorageInterface::loadMultiple public function Loads one or more entities. 1
EntityStorageInterface::loadRevision public function Load a specific entity revision. 4
EntityStorageInterface::loadUnchanged public function Loads an unchanged entity from the database. 1
EntityStorageInterface::resetCache public function Resets the internal, static entity cache. 1
EntityStorageInterface::restore public function Restores a previously saved entity. 1
EntityStorageInterface::save public function Saves the entity permanently. 1