...
Code Block | ||||
---|---|---|---|---|
| ||||
<?php class MyPluginPlugin extends Plugin { ... public function getEvents() { return array([ array([ 'event' => "Appcontroller.preAction", 'callback' => array("this", "run") )] // Add multipleadditional events here )]; } public function run($event) { // This will execute when the "Appcontroller.preAction" event is triggered } } |
...