lib/Pico.php
public function triggerEvent($eventName, array $params = array())
    {
        foreach ($this->nativePlugins as $plugin) {
            $plugin->handleEvent($eventName, $params);
        }
    }
public function triggerEvent($eventName, array $params = array())
    {
        foreach ($this->nativePlugins as $plugin) {
            $plugin->handleEvent($eventName, $params);
        }
    }
public function triggerEvent ( $ eventName , array $ params = array ( ) ) { foreach ( $ this -> nativePlugins as $ plugin ) { $ plugin -> handleEvent ( $ eventName , $ params ) ; } }
Triggers events on plugins using the current API version

Plugins using older API versions are handled by {@see PicoDeprecated}.
Please note that {@see PicoDeprecated} also triggers custom events on
plugins using older API versions, thus you can safely use this method
to trigger custom events on all loaded plugins, no matter what API
version - the event will be triggered in any case.

You MUST NOT trigger events of Pico's core with a plugin!

@see PicoPluginInterface
@see AbstractPicoPlugin
@see DummyPlugin

@param string $eventName name of the event to trigger
@param array  $params    optional parameters to pass

@return void
Triggers events on plugins using the current API version