public function FieldDefinition::getType in Drupal 9
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Field/FieldDefinition.php \Drupal\Core\Field\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
See also
\Drupal\Core\Field\FieldTypePluginManagerInterface
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();
}