function FieldDefinition::getType
Returns the field type.
Return value
string The field type, i.e. the id of a field type plugin. For example 'text'.
Overrides FieldDefinitionInterface::getType
File
-
core/
lib/ Drupal/ Core/ Field/ FieldDefinition.php, line 71
Class
- FieldDefinition
- A class for defining entity field definitions.
Namespace
Drupal\Core\FieldCode
public function getType() {
return $this->getFieldStorageDefinition()
->getType();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.