This module allows developers to register event handlers for common CMS actions using the
silverstripe/event-dispatcher
API.
SilverStripe\CMSEvents\Listener\Form\Listener
CMSMain
controller actionsavetreenode
(reorder site tree)SilverStripe\CMSEvents\Listener\CMSMain\Listener
GridField_URLHandler
)handleReorder
(reorder items)SilverStripe\CMSEvents\Listener\GridField\Action\Listener
GridField_ActionProvider
)deleterecord
, archiverecord
SilverStripe\CMSEvents\Listener\GridField\Alteration\Listener
mutation createMyDataObject(Input: $Input)
SilverStripe\CMSEvents\Listener\GraphQL\Mutation\Listener
mutation publishAllFiles
, query allTheThings
SilverStripe\CMSEvents\Listener\GraphQL\Middleware\Listener
SilverStripe\Core\Injector\Injector:
SilverStripe\EventDispatcher\Dispatch\Dispatcher:
properties:
handlers:
# arbitrary key
cmsForms:
on: [ formSubmitted.save ]
handler: %$MyProject\MySaveHandler
For more information on using the event dispatcher, read the event dispatcher documentation
$ composer require silverstripe/cms-events
See License
Bugs are tracked in the issues section of this repository. Before submitting an issue please read over
existing issues to ensure yours is unique.
If the issue does look like a new bug:
Please report security issues to the module maintainers directly. Please don't file security issues in the bugtracker.
If you would like to make contributions to the module please ensure you raise a pull request and discuss with the module maintainers.
Module rating system helping users find modules that are well supported. For more on how the rating system works visit Module standards
Score not correct? Let us know there is a problem