function FieldDefinitionInterface::getType

Same name in other branches
  1. 9 core/lib/Drupal/Core/Field/FieldDefinitionInterface.php \Drupal\Core\Field\FieldDefinitionInterface::getType()
  2. 8.9.x core/lib/Drupal/Core/Field/FieldDefinitionInterface.php \Drupal\Core\Field\FieldDefinitionInterface::getType()
  3. 11.x core/lib/Drupal/Core/Field/FieldDefinitionInterface.php \Drupal\Core\Field\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\Field

Code

public function getType();

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.