interface EntityStorageInterface
Defines the interface for entity storage classes.
For common default implementations, see \Drupal\Core\Entity\Sql\SqlContentEntityStorage for content entities and \Drupal\Core\Config\Entity\ConfigEntityStorage for config entities. Those implementations are used by default when the @ContentEntityType or @ConfigEntityType annotations are used.
Hierarchy
- interface \Drupal\Core\Entity\EntityStorageInterface
Related topics
- Entity API
- Describes how to define and manipulate content and configuration entities.
File
- core/lib/Drupal/Core/Entity/EntityStorageInterface.php, line 16
Namespace
Drupal\Core\EntityMembers
Name | Modifiers | Type | Description |
---|---|---|---|
EntityStorageInterface::create | public | function | Constructs a new entity object, without permanently saving it. |
EntityStorageInterface::delete | public | function | Deletes permanently saved entities. |
EntityStorageInterface::deleteRevision | public | function | Delete a specific entity revision. |
EntityStorageInterface::FIELD_LOAD_CURRENT | constant | Load the most recent version of an entity's field data. Overrides EntityStorageInterface::FIELD_LOAD_CURRENT | |
EntityStorageInterface::FIELD_LOAD_REVISION | constant | Load the version of an entity's field data specified in the entity. Overrides EntityStorageInterface::FIELD_LOAD_REVISION | |
EntityStorageInterface::getAggregateQuery | public | function | Gets an aggregated query instance. |
EntityStorageInterface::getEntityType | public | function | Gets the entity type definition. |
EntityStorageInterface::getEntityTypeId | public | function | Gets the entity type ID. |
EntityStorageInterface::getQuery | public | function | Gets an entity query instance. |
EntityStorageInterface::load | public | function | Loads one entity. |
EntityStorageInterface::loadByProperties | public | function | Load entities by their property values. |
EntityStorageInterface::loadMultiple | public | function | Loads one or more entities. |
EntityStorageInterface::loadRevision | public | function | Load a specific entity revision. |
EntityStorageInterface::loadUnchanged | public | function | Loads an unchanged entity from the database. |
EntityStorageInterface::resetCache | public | function | Resets the internal, static entity cache. |
EntityStorageInterface::save | public | function | Saves the entity permanently. |
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Entity!EntityStorageInterface.php/interface/EntityStorageInterface/8.1.x