W3cubDocs

/Drupal 8

public function SqlContentEntityStorage::getFieldStorageDefinitions

public SqlContentEntityStorage::getFieldStorageDefinitions()

Gets the base field definitions for a content entity type.

Return value

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

File

core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php, line 140

Class

SqlContentEntityStorage
A content entity database storage implementation.

Namespace

Drupal\Core\Entity\Sql

Code

public function getFieldStorageDefinitions() {
  return $this->entityManager->getBaseFieldDefinitions($this->entityTypeId);
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Entity!Sql!SqlContentEntityStorage.php/function/SqlContentEntityStorage::getFieldStorageDefinitions/8.1.x