forked from fago/rules
-
Notifications
You must be signed in to change notification settings - Fork 0
/
rules.rules.events.yml
35 lines (35 loc) · 1.18 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
rules_user_login:
label: 'User has logged in'
category: 'User'
context:
account:
type: 'entity:user'
label: 'Logged in user'
rules_user_logout:
label: 'User has logged out'
category: 'User'
context:
account:
type: 'entity:user'
label: 'Logged out user'
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."
rules_entity_presave:
label: 'Before saving an entity'
deriver: '\Drupal\rules\Plugin\RulesEvent\EntityPresaveDeriver'
rules_entity_delete:
label: 'After deleting an entity'
deriver: '\Drupal\rules\Plugin\RulesEvent\EntityDeleteDeriver'
rules_entity_insert:
label: 'After saving a new entity'
deriver: '\Drupal\rules\Plugin\RulesEvent\EntityInsertDeriver'
rules_entity_update:
label: 'After updating an entity'
deriver: '\Drupal\rules\Plugin\RulesEvent\EntityUpdateDeriver'
rules_entity_view:
label: 'Viewing an entity'
deriver: '\Drupal\rules\Plugin\RulesEvent\EntityViewDeriver'