You are here

protected function SqlContentEntityStorageSchema::saveEntitySchemaData in Zircon Profile 8

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

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.

2 calls to SqlContentEntityStorageSchema::saveEntitySchemaData()
SqlContentEntityStorageSchema::onEntityTypeCreate in core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorageSchema.php
Reacts to the creation of the entity type.
SqlContentEntityStorageSchema::onEntityTypeUpdate in core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorageSchema.php
Reacts to the update of the entity type.

File

core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorageSchema.php, line 790
Contains \Drupal\Core\Entity\Sql\SqlContentEntityStorageSchema.

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