public function DefaultTableMapping::__construct

public DefaultTableMapping::__construct(ContentEntityTypeInterface $entity_type, array $storage_definitions)

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 87

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;
}

© 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!DefaultTableMapping.php/function/DefaultTableMapping::__construct/8.1.x