You are here

public function EntitySchemaSubscriber::onFieldableEntityTypeCreate in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/workspaces/src/EventSubscriber/EntitySchemaSubscriber.php \Drupal\workspaces\EventSubscriber\EntitySchemaSubscriber::onFieldableEntityTypeCreate()
  2. 9 core/modules/workspaces/src/EventSubscriber/EntitySchemaSubscriber.php \Drupal\workspaces\EventSubscriber\EntitySchemaSubscriber::onFieldableEntityTypeCreate()

Reacts to the creation of the fieldable entity type.

Parameters

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

\Drupal\Core\Field\FieldStorageDefinitionInterface[] $field_storage_definitions: The entity type's field storage definitions.

Overrides EntityTypeEventSubscriberTrait::onFieldableEntityTypeCreate

File

core/modules/workspaces/src/EventSubscriber/EntitySchemaSubscriber.php, line 81

Class

EntitySchemaSubscriber
Defines a class for listening to entity schema changes.

Namespace

Drupal\workspaces\EventSubscriber

Code

public function onFieldableEntityTypeCreate(EntityTypeInterface $entity_type, array $field_storage_definitions) {
  $this
    ->onEntityTypeCreate($entity_type);
}