function FieldConfigBase::getClass
Same name in other branches
- 9 core/lib/Drupal/Core/Field/FieldConfigBase.php \Drupal\Core\Field\FieldConfigBase::getClass()
- 8.9.x core/lib/Drupal/Core/Field/FieldConfigBase.php \Drupal\Core\Field\FieldConfigBase::getClass()
- 11.x core/lib/Drupal/Core/Field/FieldConfigBase.php \Drupal\Core\Field\FieldConfigBase::getClass()
Overrides DataDefinitionInterface::getClass
1 call to FieldConfigBase::getClass()
- FieldConfigBase::getDefaultValue in core/
lib/ Drupal/ Core/ Field/ FieldConfigBase.php
1 method overrides FieldConfigBase::getClass()
- BaseFieldOverride::getClass in core/
lib/ Drupal/ Core/ Field/ Entity/ BaseFieldOverride.php
File
-
core/
lib/ Drupal/ Core/ Field/ FieldConfigBase.php, line 524
Class
- FieldConfigBase
- Base class for configurable field definitions.
Namespace
Drupal\Core\FieldCode
public function getClass() {
// Derive list class from the field type.
$type_definition = \Drupal::service('plugin.manager.field.field_type')->getDefinition($this->getType());
return $type_definition['list_class'];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.