You are here

scheduler_rules_integration.rules.events.yml in Scheduler 2.x

scheduler_rules_integration/scheduler_rules_integration.rules.events.yml

File

scheduler_rules_integration/scheduler_rules_integration.rules.events.yml
View source
  1. # Six events dispatched for node entity types.
  2. scheduler_new_node_is_scheduled_for_publishing_event:
  3. label: 'After saving a new content item that is scheduled for publishing'
  4. category: 'Content (Scheduler)'
  5. context_definitions:
  6. node:
  7. type: 'entity:node'
  8. label: 'Scheduled Content Node'
  9. description: 'The node object representing the scheduled content'
  10. scheduler_existing_node_is_scheduled_for_publishing_event:
  11. label: 'After updating a content item that is scheduled for publishing'
  12. category: 'Content (Scheduler)'
  13. context_definitions:
  14. node:
  15. type: 'entity:node'
  16. label: 'Scheduled Content Node'
  17. description: 'The node object representing the scheduled content'
  18. scheduler_new_node_is_scheduled_for_unpublishing_event:
  19. label: 'After saving a new content item that is scheduled for unpublishing'
  20. category: 'Content (Scheduler)'
  21. context_definitions:
  22. node:
  23. type: 'entity:node'
  24. label: 'Scheduled Content Node'
  25. description: 'The node object representing the scheduled content'
  26. scheduler_existing_node_is_scheduled_for_unpublishing_event:
  27. label: 'After updating a content item that is scheduled for unpublishing'
  28. category: 'Content (Scheduler)'
  29. context_definitions:
  30. node:
  31. type: 'entity:node'
  32. label: 'Scheduled Content Node'
  33. description: 'The node object representing the scheduled content'
  34. scheduler_has_published_this_node_event:
  35. label: 'After Scheduler has published a content item'
  36. category: 'Content (Scheduler)'
  37. context_definitions:
  38. node:
  39. type: 'entity:node'
  40. label: 'Scheduled Content Node'
  41. description: 'The node object representing the scheduled content'
  42. scheduler_has_unpublished_this_node_event:
  43. label: 'After Scheduler has unpublished a content item'
  44. category: 'Content (Scheduler)'
  45. context_definitions:
  46. node:
  47. type: 'entity:node'
  48. label: 'Scheduled Content Node'
  49. description: 'The node object representing the scheduled content'
  50. # Use a deriver to build the corresponding six events for all other entity
  51. # types that are supported by Scheduler. This will not create any node events,
  52. # as they need to remain unchanged as above for backwards compatibilty.
  53. scheduler:
  54. deriver: 'Drupal\scheduler_rules_integration\Event\EventDeriver'
  55. class: '\Drupal\rules\EventHandler\ConfigurableEventHandlerEntityBundle'