function EntityViewsData::getFieldStorageDefinitions

Same name in other branches
  1. 9 core/modules/views/src/EntityViewsData.php \Drupal\views\EntityViewsData::getFieldStorageDefinitions()
  2. 8.9.x core/modules/views/src/EntityViewsData.php \Drupal\views\EntityViewsData::getFieldStorageDefinitions()
  3. 10 core/modules/views/src/EntityViewsData.php \Drupal\views\EntityViewsData::getFieldStorageDefinitions()

Gets the field storage definitions.

Return value

\Drupal\Core\Field\FieldStorageDefinitionInterface[]

File

core/modules/views/src/EntityViewsData.php, line 120

Class

EntityViewsData
Provides generic views integration for entities.

Namespace

Drupal\views

Code

protected function getFieldStorageDefinitions() {
    if (!isset($this->fieldStorageDefinitions)) {
        $this->fieldStorageDefinitions = $this->entityFieldManager
            ->getFieldStorageDefinitions($this->entityType
            ->id());
    }
    return $this->fieldStorageDefinitions;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.