forked from fago/rules
-
Notifications
You must be signed in to change notification settings - Fork 1
/
rules.rules.events.yml
51 lines (51 loc) · 1.88 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
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'
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'
rules_system_cron:
label: 'Cron maintenance tasks are performed'
category: 'System'
rules_system_logger_event:
label: 'System log entry is created'
category: 'System'
context:
# @todo: create a TypedData logger-entry object: https://www.drupal.org/node/2625238
logger_entry:
type: 'any'
label: 'Logger entry'