interface SqlEntityStorageInterface in Drupal 8
Same name and namespace in other branches
- 9 core/lib/Drupal/Core/Entity/Sql/SqlEntityStorageInterface.php \Drupal\Core\Entity\Sql\SqlEntityStorageInterface
A common interface for SQL-based entity storage implementations.
Hierarchy
- interface \Drupal\Core\Entity\EntityStorageInterface
- interface \Drupal\Core\Entity\Sql\SqlEntityStorageInterface
Expanded class hierarchy of SqlEntityStorageInterface
All classes that implement SqlEntityStorageInterface
8 files declare their use of SqlEntityStorageInterface
- content_translation.install in core/
modules/ content_translation/ content_translation.install - Installation functions for Content Translation module.
- EntityViewsData.php in core/
modules/ views/ src/ EntityViewsData.php - KernelTestBase.php in core/
tests/ Drupal/ KernelTests/ KernelTestBase.php - KernelTestBase.php in core/
modules/ simpletest/ src/ KernelTestBase.php - media.install in core/
modules/ media/ media.install - Install, uninstall and update hooks for Media module.
File
- core/
lib/ Drupal/ Core/ Entity/ Sql/ SqlEntityStorageInterface.php, line 10
Namespace
Drupal\Core\Entity\SqlView 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 manager.
*
* @return \Drupal\Core\Entity\Sql\TableMappingInterface
* A table mapping object for the entity's tables.
*/
public function getTableMapping(array $storage_definitions = NULL);
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
EntityStorageInterface:: |
public | function | Constructs a new entity object, without permanently saving it. | 1 |
EntityStorageInterface:: |
public | function | Deletes permanently saved entities. | 1 |
EntityStorageInterface:: |
public | function | Delete a specific entity revision. | 4 |
EntityStorageInterface:: |
constant | Load the most recent version of an entity's field data. | ||
EntityStorageInterface:: |
constant | Load the version of an entity's field data specified in the entity. | ||
EntityStorageInterface:: |
public | function | Gets an aggregated query instance. | 1 |
EntityStorageInterface:: |
public | function | Gets the entity type definition. | 1 |
EntityStorageInterface:: |
public | function | Gets the entity type ID. | 1 |
EntityStorageInterface:: |
public | function | Gets an entity query instance. | 1 |
EntityStorageInterface:: |
public | function | Determines if the storage contains any data. | 1 |
EntityStorageInterface:: |
public | function | Loads one entity. | 1 |
EntityStorageInterface:: |
public | function | Load entities by their property values. | 1 |
EntityStorageInterface:: |
public | function | Loads one or more entities. | 1 |
EntityStorageInterface:: |
public | function | Load a specific entity revision. | 4 |
EntityStorageInterface:: |
public | function | Loads an unchanged entity from the database. | 1 |
EntityStorageInterface:: |
public | function | Resets the internal, static entity cache. | 1 |
EntityStorageInterface:: |
public | function | Restores a previously saved entity. | 1 |
EntityStorageInterface:: |
public | function | Saves the entity permanently. | 1 |
SqlEntityStorageInterface:: |
public | function | Gets a table mapping for the entity's SQL tables. | 1 |