SqlContentEntityStorageSchema::saveEntitySchemaData

protected SqlContentEntityStorageSchema::saveEntitySchemaData(EntityTypeInterface $entity_type, $schema)

Stores schema data for the given entity type definition.

Parameters

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

array $schema: The entity schema data array.

File

core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorageSchema.php, line 785

Class

SqlContentEntityStorageSchema
Defines a schema handler that supports revisionable, translatable entities.

Namespace

Drupal\Core\Entity\Sql

Code

protected function saveEntitySchemaData(EntityTypeInterface $entity_type, $schema) {
  $data = $this->getEntitySchemaData($entity_type, $schema);
  $this->installedStorageSchema()->set($entity_type->id() . '.entity_schema_data', $data);
}
doc_Drupal
2016-10-29 09:43:45
Comments
Leave a Comment

Please login to continue.