You are here

public function SqlContentEntityStorage::getFieldStorageDefinitions in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php \Drupal\Core\Entity\Sql\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 145
Contains \Drupal\Core\Entity\Sql\SqlContentEntityStorage.

Class

SqlContentEntityStorage
A content entity database storage implementation.

Namespace

Drupal\Core\Entity\Sql

Code

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