DataType::$primitive_type

The pre-defined primitive type that this data type maps to. If set, it must be a constant defined by \Drupal\Core\TypedData\Primitive such as \Drupal\Core\TypedData\Primitive::STRING. Type: string File core/lib/Drupal/Core/TypedData/Annotation/DataType.php, line 93 Class DataType Defines a data type annotation object. Namespace Drupal\Core\TypedData\Annotation Code public $primitive_type;

DataType::$list_definition_class

The definition class to use for defining a list of items of this type. Must implement the \Drupal\Core\TypedData\ListDataDefinitionInterface. Type: string File core/lib/Drupal/Core/TypedData/Annotation/DataType.php, line 83 Class DataType Defines a data type annotation object. Namespace Drupal\Core\TypedData\Annotation Code public $list_definition_class = '\Drupal\Core\TypedData\ListDataDefinition';

DataType::$list_class

The typed data class used for wrapping multiple data items of the type. Must implement the \Drupal\Core\TypedData\ListInterface. Type: string File core/lib/Drupal/Core/TypedData/Annotation/DataType.php, line 75 Class DataType Defines a data type annotation object. Namespace Drupal\Core\TypedData\Annotation Code public $list_class = '\Drupal\Core\TypedData\Plugin\DataType\ItemList';

DataType::$label

The human-readable name of the data type. Type: \Drupal\Core\Annotation\Translation Related topics Annotation for translatable text Describes how to put translatable UI text into annotations. File core/lib/Drupal/Core/TypedData/Annotation/DataType.php, line 50 Class DataType Defines a data type annotation object. Namespace Drupal\Core\TypedData\Annotation Code public $label;

DataType::$id

The data type plugin ID. Type: string File core/lib/Drupal/Core/TypedData/Annotation/DataType.php, line 41 Class DataType Defines a data type annotation object. Namespace Drupal\Core\TypedData\Annotation Code public $id;

DataType::$description

The description of the data type. Type: \Drupal\Core\Annotation\Translation Related topics Annotation for translatable text Describes how to put translatable UI text into annotations. File core/lib/Drupal/Core/TypedData/Annotation/DataType.php, line 59 Class DataType Defines a data type annotation object. Namespace Drupal\Core\TypedData\Annotation Code public $description;

DataType::$definition_class

The definition class to use for defining data of this type. Must implement the \Drupal\Core\TypedData\DataDefinitionInterface. Type: string File core/lib/Drupal/Core/TypedData/Annotation/DataType.php, line 67 Class DataType Defines a data type annotation object. Namespace Drupal\Core\TypedData\Annotation Code public $definition_class = '\Drupal\Core\TypedData\DataDefinition';

DataType::$constraints

An array of validation constraints for this type. Type: array See also \Drupal\Core\TypedData\TypedDataManager::getConstraints(). File core/lib/Drupal/Core/TypedData/Annotation/DataType.php, line 102 Class DataType Defines a data type annotation object. Namespace Drupal\Core\TypedData\Annotation Code public $constraints;

DataType

Defines a data type annotation object. The typed data API allows modules to support any kind of data based upon pre-defined primitive types and interfaces for complex data and lists. Defined data types may map to one of the pre-defined primitive types in \Drupal\Core\TypedData\Primitive or may be complex data types, containing on or more data properties. Typed data objects for complex data types have to implement the \Drupal\Core\TypedData\ComplexDataInterface. Further interface that may be imp

DataReferenceTargetDefinition::getConstraints

public DataReferenceTargetDefinition::getConstraints() Returns an array of validation constraints. The validation constraints of a definition consist of any for it defined constraints and default constraints, which are generated based on the definition and its data type. See \Drupal\Core\TypedData\TypedDataManager::getDefaultConstraints(). Constraints are defined via an array, having constraint plugin IDs as key and constraint options as values, e.g. $constraints = array( 'Range' => array(