Magnolia has mechanism to manage observation, it's Observation module. You can find this module in Magnolia\Configuration app
In there, you can add your observer (class), and register any actions as your wish, workspace, node type, path, including sub-nodes? and other options. There are already many built-in observers in there for your reference
And your observation class should extend BaseRepositoryCommand, and look like below
No comments:
Post a Comment