You are here

protected function FieldAPIHandlerTrait::getFieldStorageDefinition in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/views/src/FieldAPIHandlerTrait.php \Drupal\views\FieldAPIHandlerTrait::getFieldStorageDefinition()

Gets the field storage configuration.

Return value

\Drupal\field\FieldStorageConfigInterface The field storage definition used by this handler

7 calls to FieldAPIHandlerTrait::getFieldStorageDefinition()
Date::__construct in core/modules/datetime/src/Plugin/views/sort/Date.php
Constructs a Handler object.
Date::__construct in core/modules/datetime/src/Plugin/views/filter/Date.php
Constructs a new Date handler.
Date::__construct in core/modules/datetime/src/Plugin/views/argument/Date.php
Constructs a new Date instance.
FieldAPIHandlerTrait::getFieldDefinition in core/modules/views/src/FieldAPIHandlerTrait.php
Gets the field definition.
ListField::init in core/modules/options/src/Plugin/views/filter/ListField.php
Overrides \Drupal\views\Plugin\views\HandlerBase::init().

... See full list

1 method overrides FieldAPIHandlerTrait::getFieldStorageDefinition()
EntityField::getFieldStorageDefinition in core/modules/views/src/Plugin/views/field/EntityField.php
Gets the field storage definition.

File

core/modules/views/src/FieldAPIHandlerTrait.php, line 60

Class

FieldAPIHandlerTrait
A trait containing helper methods for field definitions.

Namespace

Drupal\views

Code

protected function getFieldStorageDefinition() {
  if (!$this->fieldStorageDefinition) {
    $field_storage_definitions = $this
      ->getEntityFieldManager()
      ->getFieldStorageDefinitions($this->definition['entity_type']);
    $this->fieldStorageDefinition = $field_storage_definitions[$this->definition['field_name']];
  }
  return $this->fieldStorageDefinition;
}