You are here

public function DefaultTableMapping::__construct in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/lib/Drupal/Core/Entity/Sql/DefaultTableMapping.php \Drupal\Core\Entity\Sql\DefaultTableMapping::__construct()

Constructs a DefaultTableMapping.

Parameters

\Drupal\Core\Entity\ContentEntityTypeInterface $entity_type: The entity type definition.

\Drupal\Core\Field\FieldStorageDefinitionInterface[] $storage_definitions: A list of field storage definitions that should be available for the field columns of this table mapping.

File

core/lib/Drupal/Core/Entity/Sql/DefaultTableMapping.php, line 92
Contains \Drupal\Core\Entity\Sql\DefaultTableMapping.

Class

DefaultTableMapping
Defines a default table mapping class.

Namespace

Drupal\Core\Entity\Sql

Code

public function __construct(ContentEntityTypeInterface $entity_type, array $storage_definitions) {
  $this->entityType = $entity_type;
  $this->fieldStorageDefinitions = $storage_definitions;
}