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