function FieldDefinitionInterface::getType
Returns the field type.
Return value
string The field type, i.e. the id of a field type plugin. For example 'text'.
See also
\Drupal\Core\Field\FieldTypePluginManagerInterface
3 methods override FieldDefinitionInterface::getType()
- BaseFieldDefinition::getType in core/
lib/ Drupal/ Core/ Field/ BaseFieldDefinition.php - Returns the field type.
- FieldConfigBase::getType in core/
lib/ Drupal/ Core/ Field/ FieldConfigBase.php - Returns the field type.
- FieldDefinition::getType in core/
lib/ Drupal/ Core/ Field/ FieldDefinition.php - Returns the field type.
File
-
core/
lib/ Drupal/ Core/ Field/ FieldDefinitionInterface.php, line 72
Class
- FieldDefinitionInterface
- Defines an interface for entity field definitions.
Namespace
Drupal\Core\FieldCode
public function getType();
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.