function DataDefinition::getDataType
Same name in other branches
- 9 core/lib/Drupal/Core/TypedData/DataDefinition.php \Drupal\Core\TypedData\DataDefinition::getDataType()
- 10 core/lib/Drupal/Core/TypedData/DataDefinition.php \Drupal\Core\TypedData\DataDefinition::getDataType()
- 11.x core/lib/Drupal/Core/TypedData/DataDefinition.php \Drupal\Core\TypedData\DataDefinition::getDataType()
Overrides DataDefinitionInterface::getDataType
1 call to DataDefinition::getDataType()
- DataDefinition::getClass in core/
lib/ Drupal/ Core/ TypedData/ DataDefinition.php - Returns the class used for creating the typed data object.
2 methods override DataDefinition::getDataType()
- EntityDataDefinition::getDataType in core/
lib/ Drupal/ Core/ Entity/ TypedData/ EntityDataDefinition.php - Returns the data type of the data.
- ListDataDefinition::getDataType in core/
lib/ Drupal/ Core/ TypedData/ ListDataDefinition.php - Returns the data type of the data.
File
-
core/
lib/ Drupal/ Core/ TypedData/ DataDefinition.php, line 53
Class
- DataDefinition
- A typed data definition class for defining data based on defined data types.
Namespace
Drupal\Core\TypedDataCode
public function getDataType() {
return !empty($this->definition['type']) ? $this->definition['type'] : 'any';
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.