public DataDefinition::getDataType()
Returns the data type of the data.
Return value
string The data type.
Overrides DataDefinitionInterface::getDataType
File
- core/lib/Drupal/Core/TypedData/DataDefinition.php, line 51
Class
- DataDefinition
- A typed data definition class for defining data based on defined data types.
Namespace
Drupal\Core\TypedData
Code
public function getDataType() { return !empty($this->definition['type']) ? $this->definition['type'] : 'any'; }
Please login to continue.