rules_test_event.rules.events.yml

tests/modules/rules_test_event/rules_test_event.rules.events.yml

File

tests/modules/rules_test_event/rules_test_event.rules.events.yml

View source
  1. # See \Drupal\rules_test_event\Event\PlainEvent
  2. rules_test_event.plain_event:
  3. label: 'Subclass of Event'
  4. category: 'Tests'
  5. context_definitions:
  6. publicProperty:
  7. type: 'string'
  8. label: 'A public string'
  9. protectedProperty:
  10. type: 'string'
  11. label: 'A protected string'
  12. privateProperty:
  13. type: 'string'
  14. label: 'A private string'
  15. # See \Drupal\rules_test_event\Event\GenericEvent
  16. rules_test_event.generic_event:
  17. label: 'Subclass of GenericEvent'
  18. category: 'Tests'
  19. context_definitions:
  20. publicProperty:
  21. type: 'string'
  22. label: 'A public string'
  23. protectedProperty:
  24. type: 'string'
  25. label: 'A protected string'
  26. privateProperty:
  27. type: 'string'
  28. label: 'A private string'
  29. # See \Drupal\rules_test_event\Event\GetterEvent
  30. rules_test_event.getter_event:
  31. label: 'Event with getter methods'
  32. category: 'Tests'
  33. context_definitions:
  34. publicProperty:
  35. type: 'string'
  36. label: 'A public string'
  37. getter: publicGetter
  38. protectedProperty:
  39. type: 'string'
  40. label: 'A protected string'
  41. getter: protectedGetter
  42. privateProperty:
  43. type: 'string'
  44. label: 'A private string'
  45. getter: privateGetter