interface SqlEntityStorageInterface

Same name in other branches
  1. 9 core/lib/Drupal/Core/Entity/Sql/SqlEntityStorageInterface.php \Drupal\Core\Entity\Sql\SqlEntityStorageInterface
  2. 8.9.x core/lib/Drupal/Core/Entity/Sql/SqlEntityStorageInterface.php \Drupal\Core\Entity\Sql\SqlEntityStorageInterface
  3. 10 core/lib/Drupal/Core/Entity/Sql/SqlEntityStorageInterface.php \Drupal\Core\Entity\Sql\SqlEntityStorageInterface

A common interface for SQL-based entity storage implementations.

Hierarchy

Expanded class hierarchy of SqlEntityStorageInterface

All classes that implement SqlEntityStorageInterface

4 files declare their use of SqlEntityStorageInterface
EntityViewsData.php in core/modules/views/src/EntityViewsData.php
KernelTestBase.php in core/tests/Drupal/KernelTests/KernelTestBase.php
Tables.php in core/lib/Drupal/Core/Entity/Query/Sql/Tables.php
views_test_query_access.module in core/modules/views/tests/modules/views_test_query_access/views_test_query_access.module

File

core/lib/Drupal/Core/Entity/Sql/SqlEntityStorageInterface.php, line 10

Namespace

Drupal\Core\Entity\Sql
View source
interface SqlEntityStorageInterface extends EntityStorageInterface {
    
    /**
     * Gets a table mapping for the entity's SQL tables.
     *
     * @param \Drupal\Core\Field\FieldStorageDefinitionInterface[] $storage_definitions
     *   (optional) An array of field storage definitions to be used to compute
     *   the table mapping. Defaults to the ones provided by the entity field
     *   manager.
     *
     * @return \Drupal\Core\Entity\Sql\TableMappingInterface
     *   A table mapping object for the entity's tables.
     */
    public function getTableMapping(?array $storage_definitions = NULL);

}

Members

Title Sort descending Modifiers Object type Summary Overrides
EntityStorageInterface::create public function Constructs a new entity object, without permanently saving it. 1
EntityStorageInterface::delete public function Deletes permanently saved entities. 1
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::getEntityClass public function Retrieves the class name used to create the entity. 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 without any access checks. 1
EntityStorageInterface::loadMultiple public function Loads one or more entities. 1
EntityStorageInterface::loadUnchanged public function Loads an unchanged entity from the database. 1
EntityStorageInterface::resetCache public function Resets the internal entity cache. 1
EntityStorageInterface::restore public function Restores a previously saved entity. 1
EntityStorageInterface::save public function Saves the entity permanently. 1
SqlEntityStorageInterface::getTableMapping public function Gets a table mapping for the entity's SQL tables. 1

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.