Pull merge.
[yaffs-website] / web / core / lib / Drupal / Core / Entity / TypedData / EntityDataDefinitionInterface.php
1 <?php
2
3 namespace Drupal\Core\Entity\TypedData;
4
5 use Drupal\Core\TypedData\ComplexDataDefinitionInterface;
6
7 /**
8  * Interface for typed data entity definitions.
9  */
10 interface EntityDataDefinitionInterface extends ComplexDataDefinitionInterface {
11
12   /**
13    * Gets the entity type ID.
14    *
15    * @return string|null
16    *   The entity type ID, or NULL if the entity type is unknown.
17    */
18   public function getEntityTypeId();
19
20   /**
21    * Sets the entity type ID.
22    *
23    * @param string $entity_type_id
24    *   The entity type to set.
25    *
26    * @return $this
27    */
28   public function setEntityTypeId($entity_type_id);
29
30   /**
31    * Gets the array of possible entity bundles.
32    *
33    * @return array|null
34    *   The array of possible bundles, or NULL for any.
35    */
36   public function getBundles();
37
38   /**
39    * Sets the array of possible entity bundles.
40    *
41    * @param array|null $bundles
42    *   The array of possible bundles, or NULL for any.
43    *
44    * @return $this
45    */
46   public function setBundles(array $bundles = NULL);
47
48 }