Version 1
[yaffs-website] / web / core / lib / Drupal / Core / Entity / ContentEntityStorageInterface.php
1 <?php
2
3 namespace Drupal\Core\Entity;
4
5 /**
6  * A storage that supports content entity types.
7  */
8 interface ContentEntityStorageInterface extends EntityStorageInterface {
9
10   /**
11    * Constructs a new entity translation object, without permanently saving it.
12    *
13    * @param \Drupal\Core\Entity\ContentEntityInterface $entity
14    *   The entity object being translated.
15    * @param string $langcode
16    *   The translation language code.
17    * @param array $values
18    *   (optional) An associative array of initial field values keyed by field
19    *   name. If none is provided default values will be applied.
20    *
21    * @return \Drupal\Core\Entity\ContentEntityInterface
22    *   A new entity translation object.
23    */
24   public function createTranslation(ContentEntityInterface $entity, $langcode, array $values = []);
25
26 }