You are here

public function SqlContentEntityStorageSchema::onEntityTypeCreate in Drupal 10

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorageSchema.php \Drupal\Core\Entity\Sql\SqlContentEntityStorageSchema::onEntityTypeCreate()
  2. 9 core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorageSchema.php \Drupal\Core\Entity\Sql\SqlContentEntityStorageSchema::onEntityTypeCreate()

Reacts to the creation of the entity type.

Parameters

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

Overrides EntityTypeListenerInterface::onEntityTypeCreate

File

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

Class

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

Namespace

Drupal\Core\Entity\Sql

Code

public function onEntityTypeCreate(EntityTypeInterface $entity_type) {
  $this
    ->onFieldableEntityTypeCreate($entity_type, $this->entityFieldManager
    ->getFieldStorageDefinitions($entity_type
    ->id()));
}