You are here

public function FieldConfigBase::getType in Drupal 8

Same name and namespace in other branches
  1. 9 core/lib/Drupal/Core/Field/FieldConfigBase.php \Drupal\Core\Field\FieldConfigBase::getType()
  2. 10 core/lib/Drupal/Core/Field/FieldConfigBase.php \Drupal\Core\Field\FieldConfigBase::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

4 calls to FieldConfigBase::getType()
BaseFieldOverride::preSave in core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php
FieldConfigBase::calculateDependencies in core/lib/Drupal/Core/Field/FieldConfigBase.php
Calculates dependencies and stores them in the dependency property.
FieldConfigBase::getClass in core/lib/Drupal/Core/Field/FieldConfigBase.php
Returns the class used for creating the typed data object.
FieldConfigBase::onDependencyRemoval in core/lib/Drupal/Core/Field/FieldConfigBase.php
Informs the entity that entities it depends on will be deleted.

File

core/lib/Drupal/Core/Field/FieldConfigBase.php, line 211

Class

FieldConfigBase
Base class for configurable field definitions.

Namespace

Drupal\Core\Field

Code

public function getType() {
  return $this->field_type;
}