function EntityTypeEventSubscriberTrait::onEntityTypeCreate

Same name in other branches
  1. 9 core/lib/Drupal/Core/Entity/EntityTypeEventSubscriberTrait.php \Drupal\Core\Entity\EntityTypeEventSubscriberTrait::onEntityTypeCreate()
  2. 8.9.x core/lib/Drupal/Core/Entity/EntityTypeEventSubscriberTrait.php \Drupal\Core\Entity\EntityTypeEventSubscriberTrait::onEntityTypeCreate()
  3. 10 core/lib/Drupal/Core/Entity/EntityTypeEventSubscriberTrait.php \Drupal\Core\Entity\EntityTypeEventSubscriberTrait::onEntityTypeCreate()
1 call to EntityTypeEventSubscriberTrait::onEntityTypeCreate()
EntityTypeEventSubscriberTrait::onEntityTypeEvent in core/lib/Drupal/Core/Entity/EntityTypeEventSubscriberTrait.php
Listener method for any entity type definition event.
3 methods override EntityTypeEventSubscriberTrait::onEntityTypeCreate()
EntitySchemaSubscriber::onEntityTypeCreate in core/modules/workspaces/src/EventSubscriber/EntitySchemaSubscriber.php
Reacts to the creation of the entity type.
EntitySchemaSubscriber::onEntityTypeCreate in core/modules/system/tests/modules/entity_test_update/src/EventSubscriber/EntitySchemaSubscriber.php
Reacts to the creation of the entity type.
EntityTestDefinitionSubscriber::onEntityTypeCreate in core/modules/system/tests/modules/entity_test/src/EntityTestDefinitionSubscriber.php
Reacts to the creation of the entity type.

File

core/lib/Drupal/Core/Entity/EntityTypeEventSubscriberTrait.php, line 59

Class

EntityTypeEventSubscriberTrait
Helper methods for EntityTypeListenerInterface.

Namespace

Drupal\Core\Entity

Code

public function onEntityTypeCreate(EntityTypeInterface $entity_type) {
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.