You are here

rules.reaction.userpoints_rules_earn_on_content_update.yml in User Points 8

modules/rules_example/config/install/rules.reaction.userpoints_rules_earn_on_content_update.yml

File

modules/rules_example/config/install/rules.reaction.userpoints_rules_earn_on_content_update.yml
View source
  1. langcode: en
  2. status: true
  3. dependencies:
  4. config:
  5. - transaction.operation.userpoints_rules_earn_on_content_update
  6. enforced:
  7. module:
  8. - userpoints_rules_example
  9. id: userpoints_rules_earn_on_content_update
  10. label: 'Earn points for updating content'
  11. events:
  12. -
  13. event_name: 'rules_entity_update:node'
  14. description: 'Grant some points to content editors.'
  15. tags:
  16. - userpoints
  17. - example
  18. config_version: '3'
  19. expression:
  20. id: rules_rule
  21. uuid: 814241d1-d49f-4234-b112-7b39b1c5dc68
  22. conditions:
  23. id: rules_and
  24. uuid: e8d7bd44-e159-4296-9cbb-a6e919a366c5
  25. conditions: { }
  26. actions:
  27. id: rules_action_set
  28. uuid: 81320145-99b9-45c6-87fd-36f44ac7236d
  29. actions:
  30. -
  31. id: rules_action
  32. uuid: d2fb7e58-f1cd-4af1-b27c-5763c7a43ea2
  33. context_values:
  34. transaction_type_id: userpoints_default_points
  35. operation_id: userpoints_rules_earn_on_content_update
  36. transaction_field_amount: '10'
  37. transaction_field_balance: '0'
  38. transaction_field_log_message: ''
  39. context_mapping:
  40. target_entity: '@user.current_user_context:current_user'
  41. context_processors:
  42. transaction_type_id:
  43. rules_tokens: { }
  44. operation_id:
  45. rules_tokens: { }
  46. transaction_field_amount:
  47. rules_tokens: { }
  48. transaction_field_balance:
  49. rules_tokens: { }
  50. transaction_field_log_message:
  51. rules_tokens: { }
  52. provides_mapping: { }
  53. action_id: 'transaction_create:userpoints'
  54. -
  55. id: rules_action
  56. uuid: 0d0256a6-9f9f-4d88-8b76-0b4121756db8
  57. context_values: { }
  58. context_mapping:
  59. data: transaction.field_userpoints_default_linkref
  60. value: node
  61. context_processors: { }
  62. provides_mapping: { }
  63. action_id: rules_data_set
  64. -
  65. id: rules_action
  66. uuid: c85a60bd-6441-4028-ad18-ad3f9547b87d
  67. context_values:
  68. immediate: ''
  69. context_mapping:
  70. transaction: transaction
  71. context_processors:
  72. immediate:
  73. rules_tokens: { }
  74. provides_mapping: { }
  75. action_id: transaction_execute