You are here

protected function EntityField::getFieldStorageDefinition in Chaos Tool Suite (ctools) 8.3

Gets the field storage definition.

Return value

\Drupal\Core\Field\FieldStorageDefinitionInterface The field storage definition.

File

modules/ctools_block/src/Plugin/Block/EntityField.php, line 317

Class

EntityField
Provides a block to a field on an entity.

Namespace

Drupal\ctools_block\Plugin\Block

Code

protected function getFieldStorageDefinition() {
  if (empty($this->fieldStorageDefinition)) {
    $field_definitions = $this->entityFieldManager
      ->getFieldStorageDefinitions($this->entityTypeId);
    $this->fieldStorageDefinition = $field_definitions[$this->fieldName];
  }
  return $this->fieldStorageDefinition;
}