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
File
- core/lib/Drupal/Core/Entity/TypedData/EntityDataDefinitionInterface.php, line 10
Namespace
Drupal\Core\Entity\TypedData
Members
Name | Modifiers | Type | Description |
---|---|---|---|
ComplexDataDefinitionInterface::getMainPropertyName | public | function | Returns the name of the main property, if any. |
ComplexDataDefinitionInterface::getPropertyDefinition | public | function | Gets the definition of a contained property. |
ComplexDataDefinitionInterface::getPropertyDefinitions | public | function | Gets an array of property definitions of contained properties. |
DataDefinitionInterface::addConstraint | public | function | Adds a validation constraint. |
DataDefinitionInterface::createFromDataType | public static | function | Creates a new data definition object. |
DataDefinitionInterface::getClass | public | function | Returns the class used for creating the typed data object. |
DataDefinitionInterface::getConstraint | public | function | Returns a validation constraint. |
DataDefinitionInterface::getConstraints | public | function | Returns an array of validation constraints. |
DataDefinitionInterface::getDataType | public | function | Returns the data type of the data. |
DataDefinitionInterface::getDescription | public | function | Returns a human readable description. |
DataDefinitionInterface::getLabel | public | function | Returns a human readable label. |
DataDefinitionInterface::getSetting | public | function | Returns the value of a given setting. |
DataDefinitionInterface::getSettings | public | function | Returns the array of settings, as required by the used class. |
DataDefinitionInterface::isComputed | public | function | Determines whether the data value is computed. |
DataDefinitionInterface::isList | public | function | Returns whether the data is multi-valued, i.e. a list of data items. |
DataDefinitionInterface::isReadOnly | public | function | Determines whether the data is read-only. |
DataDefinitionInterface::isRequired | public | function | Determines whether a data value is required. |
EntityDataDefinitionInterface::getBundles | public | function | Gets the array of possible entity bundles. |
EntityDataDefinitionInterface::getEntityTypeId | public | function | Gets the entity type ID. |
EntityDataDefinitionInterface::setBundles | public | function | Sets the array of possible entity bundles. |
EntityDataDefinitionInterface::setEntityTypeId | public | function | Sets the entity type ID. |
Please login to continue.