FieldAPIHandlerTrait::getFieldStorageDefinition

protected FieldAPIHandlerTrait::getFieldStorageDefinition()

Gets the field storage configuration.

Return value

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

File

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

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;
}
doc_Drupal
2016-10-29 09:10:33
Comments
Leave a Comment

Please login to continue.