Same name and namespace in other branches
  1. 8.9.x core/lib/Drupal/Core/Field/FieldConfigBase.php \Drupal\Core\Field\FieldConfigBase::getType()
  2. 9 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()
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.
FieldConfigBase::postCreate in core/lib/Drupal/Core/Field/FieldConfigBase.php
Acts on a created entity before hooks are invoked.

File

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

Class

FieldConfigBase
Base class for configurable field definitions.

Namespace

Drupal\Core\Field

Code

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