interface TranslatableStorageInterface in Drupal 8
Same name and namespace in other branches
- 9 core/lib/Drupal/Core/Entity/TranslatableStorageInterface.php \Drupal\Core\Entity\TranslatableStorageInterface
A storage that supports translatable entity types.
Hierarchy
- interface \Drupal\Core\Entity\EntityStorageInterface
- interface \Drupal\Core\Entity\TranslatableStorageInterface
Expanded class hierarchy of TranslatableStorageInterface
All classes that implement TranslatableStorageInterface
File
- core/
lib/ Drupal/ Core/ Entity/ TranslatableStorageInterface.php, line 8
Namespace
Drupal\Core\EntityView source
interface TranslatableStorageInterface extends EntityStorageInterface {
/**
* Constructs a new entity translation object, without permanently saving it.
*
* @param \Drupal\Core\Entity\ContentEntityInterface $entity
* The entity object being translated.
* @param string $langcode
* The translation language code.
* @param array $values
* (optional) An associative array of initial field values keyed by field
* name. If none is provided default values will be applied.
*
* @return \Drupal\Core\Entity\ContentEntityInterface
* Another instance of the specified entity object class with the specified
* active language and initial values.
*
* @todo Consider accepting \Drupal\Core\Entity\TranslatableInterface as first
* parameter. See https://www.drupal.org/project/drupal/issues/2932049.
*/
public function createTranslation(ContentEntityInterface $entity, $langcode, array $values = []);
}
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 |
TranslatableStorageInterface:: |
public | function | Constructs a new entity translation object, without permanently saving it. | 2 |