ContentEntityStorageInterface.php in Drupal 10
Same filename and directory in other branches
Namespace
Drupal\Core\EntityFile
core/lib/Drupal/Core/Entity/ContentEntityStorageInterface.phpView source
<?php
namespace Drupal\Core\Entity;
/**
* A storage that supports content entity types.
*/
interface ContentEntityStorageInterface extends EntityStorageInterface, TranslatableRevisionableStorageInterface {
/**
* Creates an entity with sample field values.
*
* @param string|bool $bundle
* (optional) The entity bundle.
* @param array $values
* (optional) Any default values to use during generation.
*
* @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 createWithSampleValues($bundle = FALSE, array $values = []);
}
Interfaces
Name | Description |
---|---|
ContentEntityStorageInterface | A storage that supports content entity types. |