Piwik\Plugin::registerEvents PHP Метод

registerEvents() публичный Метод

Derived classes should use this method to associate callbacks with events.
С версии: 2.15.0
public registerEvents ( ) : array
Результат array eg, array( 'API.getReportMetadata' => 'myPluginFunction', 'Another.event' => array( 'function' => 'myOtherPluginFunction', 'after' => true // execute after callbacks w/o ordering ) 'Yet.Another.event' => array( 'function' => 'myOtherPluginFunction', 'before' => true // execute before callbacks w/o ordering ) )
    public function registerEvents()
    {
        return array();
    }