DataType
  • References/PHP/Drupal/TypedData/Annotation/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

2025-01-10 15:47:30
DataType::$definition_class
  • References/PHP/Drupal/TypedData/Annotation/DataType

The definition class to use for defining data of this type. Must implement the

2025-01-10 15:47:30
DataType::$id
  • References/PHP/Drupal/TypedData/Annotation/DataType

The data type plugin ID. Type: string File core/lib

2025-01-10 15:47:30
DataType::$primitive_type
  • References/PHP/Drupal/TypedData/Annotation/DataType

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

2025-01-10 15:47:30
DataType::$label
  • References/PHP/Drupal/TypedData/Annotation/DataType

The human-readable name of the data type. Type:

2025-01-10 15:47:30
DataType::$constraints
  • References/PHP/Drupal/TypedData/Annotation/DataType

An array of validation constraints for this type. Type:

2025-01-10 15:47:30
DataType::$list_definition_class
  • References/PHP/Drupal/TypedData/Annotation/DataType

The definition class to use for defining a list of items of this type. Must implement the

2025-01-10 15:47:30
DataType::$unwrap_for_canonical_representation
  • References/PHP/Drupal/TypedData/Annotation/DataType

Whether the typed object wraps the canonical representation of the data. Type: bool See also

2025-01-10 15:47:30
DataType::$list_class
  • References/PHP/Drupal/TypedData/Annotation/DataType

The typed data class used for wrapping multiple data items of the type. Must implement the

2025-01-10 15:47:30
DataType::$description
  • References/PHP/Drupal/TypedData/Annotation/DataType

The description of the data type. Type:

2025-01-10 15:47:30