You are here

interface ContentEntityStorageInterface in Multiversion 8

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

Hierarchy

Expanded class hierarchy of ContentEntityStorageInterface

All classes that implement ContentEntityStorageInterface

19 files declare their use of ContentEntityStorageInterface
AliasStorage.php in src/AliasStorage.php
CommentStatistics.php in src/CommentStatistics.php
CommentStorage.php in src/Entity/Storage/Sql/CommentStorage.php
ContentEntityStorage.php in src/Entity/Storage/Sql/ContentEntityStorage.php
CropStorage.php in src/Entity/Storage/Sql/CropStorage.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);

  /**
   * Truncate all related tables to entity type.
   *
   * This function should be called to avoid calling pre-delete/delete hooks.
   */
  public function truncate();

  /**
   * 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::truncate public function Truncate all related tables to entity type. 1
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