interface EntityDataDefinitionInterface in Drupal 8
Same name and namespace in other branches
- 9 core/lib/Drupal/Core/Entity/TypedData/EntityDataDefinitionInterface.php \Drupal\Core\Entity\TypedData\EntityDataDefinitionInterface
- 10 core/lib/Drupal/Core/Entity/TypedData/EntityDataDefinitionInterface.php \Drupal\Core\Entity\TypedData\EntityDataDefinitionInterface
Interface for typed data entity definitions.
Hierarchy
- interface \Drupal\Core\TypedData\DataDefinitionInterface
- interface \Drupal\Core\TypedData\ComplexDataDefinitionInterface
- interface \Drupal\Core\Entity\TypedData\EntityDataDefinitionInterface
- interface \Drupal\Core\TypedData\ComplexDataDefinitionInterface
Expanded class hierarchy of EntityDataDefinitionInterface
All classes that implement EntityDataDefinitionInterface
4 files declare their use of EntityDataDefinitionInterface
- EntityFieldTest.php in core/
tests/ Drupal/ KernelTests/ Core/ Entity/ EntityFieldTest.php - EntityTypedDataDefinitionTest.php in core/
tests/ Drupal/ KernelTests/ Core/ Entity/ EntityTypedDataDefinitionTest.php - FieldResolver.php in core/
modules/ jsonapi/ src/ Context/ FieldResolver.php - Tables.php in core/
lib/ Drupal/ Core/ Entity/ Query/ Sql/ Tables.php
File
- core/
lib/ Drupal/ Core/ Entity/ TypedData/ EntityDataDefinitionInterface.php, line 10
Namespace
Drupal\Core\Entity\TypedDataView source
interface EntityDataDefinitionInterface extends ComplexDataDefinitionInterface {
/**
* Gets the entity type ID.
*
* @return string|null
* The entity type ID, or NULL if the entity type is unknown.
*/
public function getEntityTypeId();
/**
* Sets the entity type ID.
*
* @param string $entity_type_id
* The entity type to set.
*
* @return $this
*/
public function setEntityTypeId($entity_type_id);
/**
* Gets the array of possible entity bundles.
*
* @return array|null
* The array of possible bundles, or NULL for any.
*/
public function getBundles();
/**
* Sets the array of possible entity bundles.
*
* @param array|null $bundles
* The array of possible bundles, or NULL for any.
*
* @return $this
*/
public function setBundles(array $bundles = NULL);
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ComplexDataDefinitionInterface:: |
public | function | Returns the name of the main property, if any. | 2 |
ComplexDataDefinitionInterface:: |
public | function | Gets the definition of a contained property. | 2 |
ComplexDataDefinitionInterface:: |
public | function | Gets an array of property definitions of contained properties. | 2 |
DataDefinitionInterface:: |
public | function | Adds a validation constraint. | 2 |
DataDefinitionInterface:: |
public static | function | Creates a new data definition object. | 2 |
DataDefinitionInterface:: |
public | function | Returns the class used for creating the typed data object. | 2 |
DataDefinitionInterface:: |
public | function | Returns a validation constraint. | 2 |
DataDefinitionInterface:: |
public | function | Returns an array of validation constraints. | 2 |
DataDefinitionInterface:: |
public | function | Returns the data type of the data. | 2 |
DataDefinitionInterface:: |
public | function | Returns a human readable description. | 2 |
DataDefinitionInterface:: |
public | function | Returns a human readable label. | 2 |
DataDefinitionInterface:: |
public | function | Returns the value of a given setting. | 2 |
DataDefinitionInterface:: |
public | function | Returns the array of settings, as required by the used class. | 2 |
DataDefinitionInterface:: |
public | function | Determines whether the data value is computed. | 3 |
DataDefinitionInterface:: |
public | function | Determines whether the data value is internal. | 2 |
DataDefinitionInterface:: |
public | function | Returns whether the data is multi-valued, i.e. a list of data items. | 2 |
DataDefinitionInterface:: |
public | function | Determines whether the data is read-only. | 3 |
DataDefinitionInterface:: |
public | function | Determines whether a data value is required. | 2 |
EntityDataDefinitionInterface:: |
public | function | Gets the array of possible entity bundles. | 1 |
EntityDataDefinitionInterface:: |
public | function | Gets the entity type ID. | 1 |
EntityDataDefinitionInterface:: |
public | function | Sets the array of possible entity bundles. | 1 |
EntityDataDefinitionInterface:: |
public | function | Sets the entity type ID. | 1 |