Skip to content
Snippets Groups Projects
Commit c6036a58 authored by Angie Byron's avatar Angie Byron
Browse files

Issue #2425379 by eojthebrave: Add @Event documentation to all EntityTypeEvents

parent f1652eb3
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -13,21 +13,54 @@
final class EntityTypeEvents {
/**
* Event name for entity type creation.
* The name of the event triggered when a new entity type is created.
*
* This event allows modules to react to a new entity type being created. The
* event listener method receives a \Drupal\Core\Entity\EntityTypeEvent
* instance.
*
* @Event
*
* @see \Drupal\Core\Entity\EntityTypeEvent
* @see \Drupal\Core\Entity\EntityManager::onEntityTypeCreate()
* @see \Drupal\Core\Entity\EntityTypeEventSubscriberTrait
* @see \Drupal\views\EventSubscriber\ViewsEntitySchemaSubscriber::onEntityTypeCreate()
*
* @var string
*/
const CREATE = 'entity_type.definition.create';
/**
* Event name for entity type update.
* The name of the event triggered when an existing entity type is updated.
*
* This event allows modules to react whenever an existing entity type is
* updated. The event listener method receives a
* \Drupal\Core\Entity\EntityTypeEvent instance.
*
* @Event
*
* @see \Drupal\Core\Entity\EntityTypeEvent
* @see \Drupal\Core\Entity\EntityManager::onEntityTypeUpdate()
* @see \Drupal\Core\Entity\EntityTypeEventSubscriberTrait
* @see \Drupal\views\EventSubscriber\ViewsEntitySchemaSubscriber::onEntityTypeUpdate()
*
* @var string
*/
const UPDATE = 'entity_type.definition.update';
/**
* Event name for entity type deletion.
* The name of the event triggered when an existing entity type is deleted.
*
* This event allows modules to react whenever an existing entity type is
* deleted. The event listener method receives a
* \Drupal\Core\Entity\EntityTypeEvent instance.
*
* @Event
*
* @see \Drupal\Core\Entity\EntityTypeEvent
* @see \Drupal\Core\Entity\EntityManager::onEntityTypeDelete()
* @see \Drupal\Core\Entity\EntityTypeEventSubscriberTrait
* @see \Drupal\views\EventSubscriber\ViewsEntitySchemaSubscriber::onEntityTypeDelete()
*
* @var string
*/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment