You are here

public function BaseFieldOverride::getClass in Drupal 9

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php \Drupal\Core\Field\Entity\BaseFieldOverride::getClass()

Returns the class used for creating the typed data object.

If not specified, the default class of the data type will be returned.

Return value

string The class used for creating the typed data object.

Overrides FieldConfigBase::getClass

File

core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php, line 146

Class

BaseFieldOverride
Defines the base field override entity.

Namespace

Drupal\Core\Field\Entity

Code

public function getClass() {
  return $this
    ->getBaseFieldDefinition()
    ->getClass();
}