You are here

protected function FieldStorageConfig::getFieldItemClass in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 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 784
Contains \Drupal\field\Entity\FieldStorageConfig.

Class

FieldStorageConfig
Defines the Field storage configuration entity.

Namespace

Drupal\field\Entity

Code

protected function getFieldItemClass() {
  $type_definition = \Drupal::typedDataManager()
    ->getDefinition('field_item:' . $this
    ->getType());
  return $type_definition['class'];
}