Updated Drupal to 8.6. This goes with the following updates because it's possible...
[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, TranslatableRevisionableStorageInterface {
9
10   /**
11    * Creates an entity with sample field values.
12    *
13    * @param string|bool $bundle
14    *   (optional) The entity bundle.
15    * @param array $values
16    *   (optional) Any default values to use during generation.
17    *
18    * @return \Drupal\Core\Entity\FieldableEntityInterface
19    *   A fieldable content entity.
20    *
21    * @throws \Drupal\Core\Entity\EntityStorageException
22    *   Thrown if the bundle does not exist or was needed but not specified.
23    */
24   public function createWithSampleValues($bundle = FALSE, array $values = []);
25
26 }