function EntityFieldManagerInterface::getFieldStorageDefinitions

Same name in other branches
  1. 9 core/lib/Drupal/Core/Entity/EntityFieldManagerInterface.php \Drupal\Core\Entity\EntityFieldManagerInterface::getFieldStorageDefinitions()
  2. 10 core/lib/Drupal/Core/Entity/EntityFieldManagerInterface.php \Drupal\Core\Entity\EntityFieldManagerInterface::getFieldStorageDefinitions()
  3. 11.x core/lib/Drupal/Core/Entity/EntityFieldManagerInterface.php \Drupal\Core\Entity\EntityFieldManagerInterface::getFieldStorageDefinitions()

Gets the field storage definitions for a content entity type.

This returns all field storage definitions for base fields and bundle fields of an entity type. Note that field storage definitions of a base field equal the full base field definition (i.e. they implement FieldDefinitionInterface), while the storage definitions for bundle fields may implement FieldStorageDefinitionInterface only.

Parameters

string $entity_type_id: The entity type ID. Only content entities are supported.

Return value

\Drupal\Core\Field\FieldStorageDefinitionInterface[] The array of field storage definitions for the entity type, keyed by field name.

See also

\Drupal\Core\Field\FieldStorageDefinitionInterface

2 methods override EntityFieldManagerInterface::getFieldStorageDefinitions()
EntityFieldManager::getFieldStorageDefinitions in core/lib/Drupal/Core/Entity/EntityFieldManager.php
Gets the field storage definitions for a content entity type.
EntityManager::getFieldStorageDefinitions in core/lib/Drupal/Core/Entity/EntityManager.php

File

core/lib/Drupal/Core/Entity/EntityFieldManagerInterface.php, line 62

Class

EntityFieldManagerInterface
Provides an interface for an entity field manager.

Namespace

Drupal\Core\Entity

Code

public function getFieldStorageDefinitions($entity_type_id);

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