3 namespace Drupal\Core\Entity\TypedData;
5 use Drupal\Core\TypedData\ComplexDataDefinitionInterface;
8 * Interface for typed data entity definitions.
10 interface EntityDataDefinitionInterface extends ComplexDataDefinitionInterface {
13 * Gets the entity type ID.
16 * The entity type ID, or NULL if the entity type is unknown.
18 public function getEntityTypeId();
21 * Sets the entity type ID.
23 * @param string $entity_type_id
24 * The entity type to set.
28 public function setEntityTypeId($entity_type_id);
31 * Gets the array of possible entity bundles.
34 * The array of possible bundles, or NULL for any.
36 public function getBundles();
39 * Sets the array of possible entity bundles.
41 * @param array|null $bundles
42 * The array of possible bundles, or NULL for any.
46 public function setBundles(array $bundles = NULL);