3 namespace Drupal\Core\Entity;
6 * A storage that supports content entity types.
8 interface ContentEntityStorageInterface extends EntityStorageInterface, TranslatableRevisionableStorageInterface {
11 * Creates an entity with sample field values.
13 * @param string|bool $bundle
14 * (optional) The entity bundle.
15 * @param array $values
16 * (optional) Any default values to use during generation.
18 * @return \Drupal\Core\Entity\FieldableEntityInterface
19 * A fieldable content entity.
21 * @throws \Drupal\Core\Entity\EntityStorageException
22 * Thrown if the bundle does not exist or was needed but not specified.
24 public function createWithSampleValues($bundle = FALSE, array $values = []);