rules.rules.events.yml

rules.rules.events.yml

File

./rules.rules.events.yml

View source
  1. # Symfony Kernel events.
  2. kernel.request:
  3. label: 'Drupal is initializing'
  4. category: 'System'
  5. # @todo Should this event have the request as context? Should we define a
  6. # request data type?
  7. help: "Be aware that some actions might initialize the theme system. After that, it's impossible for any module to change the used theme."
  8. kernel.terminate:
  9. label: 'Drupal is terminating'
  10. category: 'System'
  11. # Entity CRUD events.
  12. rules_entity_presave:
  13. label: 'Before saving an entity'
  14. deriver: '\Drupal\rules\Plugin\RulesEvent\EntityPresaveDeriver'
  15. class: '\Drupal\rules\EventHandler\ConfigurableEventHandlerEntityBundle'
  16. rules_entity_delete:
  17. label: 'After deleting an entity'
  18. deriver: '\Drupal\rules\Plugin\RulesEvent\EntityDeleteDeriver'
  19. class: '\Drupal\rules\EventHandler\ConfigurableEventHandlerEntityBundle'
  20. rules_entity_insert:
  21. label: 'After saving a new entity'
  22. deriver: '\Drupal\rules\Plugin\RulesEvent\EntityInsertDeriver'
  23. class: '\Drupal\rules\EventHandler\ConfigurableEventHandlerEntityBundle'
  24. rules_entity_update:
  25. label: 'After updating an entity'
  26. deriver: '\Drupal\rules\Plugin\RulesEvent\EntityUpdateDeriver'
  27. class: '\Drupal\rules\EventHandler\ConfigurableEventHandlerEntityBundle'
  28. rules_entity_view:
  29. label: 'Viewing an entity'
  30. deriver: '\Drupal\rules\Plugin\RulesEvent\EntityViewDeriver'
  31. class: '\Drupal\rules\EventHandler\ConfigurableEventHandlerEntityBundle'
  32. # System events.
  33. rules_system_cron:
  34. label: 'Cron maintenance tasks are performed'
  35. category: 'System'
  36. rules_system_logger_event:
  37. label: 'System log entry is created'
  38. category: 'System'
  39. context_definitions:
  40. # @todo Create a TypedData logger-entry object: https://www.drupal.org/node/2625238
  41. logger_entry:
  42. type: 'any'
  43. label: 'Logger entry'
  44. # User events.
  45. rules_user_login:
  46. label: 'User has logged in'
  47. category: 'User'
  48. context_definitions:
  49. account:
  50. type: 'entity:user'
  51. label: 'Logged in user'
  52. rules_user_logout:
  53. label: 'User has logged out'
  54. category: 'User'
  55. context_definitions:
  56. account:
  57. type: 'entity:user'
  58. label: 'Logged out user'