You are here

public function FieldDefinitionInterface::getType in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 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

2 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.

File

core/lib/Drupal/Core/Field/FieldDefinitionInterface.php, line 77
Contains \Drupal\Core\Field\FieldDefinitionInterface.

Class

FieldDefinitionInterface
Defines an interface for entity field definitions.

Namespace

Drupal\Core\Field

Code

public function getType();