Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / web / core / lib / Drupal / Core / Entity / ContentEntityStorageInterface.php
index 47e058d8e1b557fd185c1a847e46f3fdfa6146a2..9b35a84bef192bb64fee7bb7d3c4dbfc53fd70d5 100644 (file)
@@ -5,22 +5,22 @@ namespace Drupal\Core\Entity;
 /**
  * A storage that supports content entity types.
  */
-interface ContentEntityStorageInterface extends EntityStorageInterface {
+interface ContentEntityStorageInterface extends EntityStorageInterface, TranslatableRevisionableStorageInterface {
 
   /**
-   * Constructs a new entity translation object, without permanently saving it.
+   * Creates an entity with sample field values.
    *
-   * @param \Drupal\Core\Entity\ContentEntityInterface $entity
-   *   The entity object being translated.
-   * @param string $langcode
-   *   The translation language code.
+   * @param string|bool $bundle
+   *   (optional) The entity bundle.
    * @param array $values
-   *   (optional) An associative array of initial field values keyed by field
-   *   name. If none is provided default values will be applied.
+   *   (optional) Any default values to use during generation.
    *
-   * @return \Drupal\Core\Entity\ContentEntityInterface
-   *   A new entity translation object.
+   * @return \Drupal\Core\Entity\FieldableEntityInterface
+   *   A fieldable content entity.
+   *
+   * @throws \Drupal\Core\Entity\EntityStorageException
+   *   Thrown if the bundle does not exist or was needed but not specified.
    */
-  public function createTranslation(ContentEntityInterface $entity, $langcode, array $values = []);
+  public function createWithSampleValues($bundle = FALSE, array $values = []);
 
 }