DataDefinition::getDataType

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';
}
doc_Drupal
2016-10-29 09:00:05
Comments
Leave a Comment

Please login to continue.