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;
}
doc_Drupal
2016-10-29 09:01:55
Comments
Leave a Comment

Please login to continue.