function FieldStorageConfig::getFieldItemClass
Same name in other branches
- 9 core/modules/field/src/Entity/FieldStorageConfig.php \Drupal\field\Entity\FieldStorageConfig::getFieldItemClass()
- 10 core/modules/field/src/Entity/FieldStorageConfig.php \Drupal\field\Entity\FieldStorageConfig::getFieldItemClass()
- 11.x core/modules/field/src/Entity/FieldStorageConfig.php \Drupal\field\Entity\FieldStorageConfig::getFieldItemClass()
Helper to retrieve the field item class.
4 calls to FieldStorageConfig::getFieldItemClass()
- FieldStorageConfig::getMainPropertyName in core/
modules/ field/ src/ Entity/ FieldStorageConfig.php - Returns the name of the main property, if any.
- FieldStorageConfig::getOptionsProvider in core/
modules/ field/ src/ Entity/ FieldStorageConfig.php - Gets an options provider for the given field item property.
- FieldStorageConfig::getPropertyDefinitions in core/
modules/ field/ src/ Entity/ FieldStorageConfig.php - Gets an array of property definitions of contained properties.
- FieldStorageConfig::getSchema in core/
modules/ field/ src/ Entity/ FieldStorageConfig.php - Returns the field schema.
File
-
core/
modules/ field/ src/ Entity/ FieldStorageConfig.php, line 792
Class
- FieldStorageConfig
- Defines the Field storage configuration entity.
Namespace
Drupal\field\EntityCode
protected function getFieldItemClass() {
$type_definition = \Drupal::typedDataManager()->getDefinition('field_item:' . $this->getType());
return $type_definition['class'];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.