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[] The array of field storage definitions, keyed by field name.

Deprecated

in drupal:11.2.0 and is removed from drupal:12.0.0. No replacement is provided.

See also

https://www.drupal.org/node/3240278

1 call to EntityViewsData::getFieldStorageDefinitions()
EntityViewsDataWithDeprecations::getViewsData in core/modules/views/tests/src/Kernel/Entity/EntityViewsDataTest.php
Returns views data for the entity type.

File

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

Class

EntityViewsData
Provides generic views integration for entities.

Namespace

Drupal\views

Code

protected function getFieldStorageDefinitions() {
    @trigger_error(__METHOD__ . '() is deprecated in drupal:11.2.0 and is removed from drupal:12.0.0. No replacement is provided. See https://www.drupal.org/node/3240278', E_USER_DEPRECATED);
    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.