You are here

protected function FieldAPIHandlerTrait::getFieldStorageDefinition in Zircon Profile 8.0

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

5 calls to FieldAPIHandlerTrait::getFieldStorageDefinition()
Date::__construct in core/modules/datetime/src/Plugin/views/filter/Date.php
Constructs a new Date handler.
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().
NumberListField::init in core/modules/options/src/Plugin/views/argument/NumberListField.php
Overrides Drupal\views\Plugin\views\HandlerBase:init().
StringListField::init in core/modules/options/src/Plugin/views/argument/StringListField.php
Overrides Drupal\views\Plugin\views\HandlerBase:init().
1 method overrides FieldAPIHandlerTrait::getFieldStorageDefinition()
Field::getFieldStorageDefinition in core/modules/views/src/Plugin/views/field/Field.php
Gets the field storage of the used field.

File

core/modules/views/src/FieldAPIHandlerTrait.php, line 58
Contains \Drupal\views\FieldAPIHandlerTrait.

Class

FieldAPIHandlerTrait
A trait containing helper methods for field definitions.

Namespace

Drupal\views

Code

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