public findComponents ( string $componentName, string $expectedSubclass ) : stdClass[] | ||
$componentName | string | The name of the component you want to look for. In case you request a component named 'Menu' it'll look for a file named 'Menu.php' within the root of all plugin folders that implement a class named Piwik\Plugin\$PluginName\Menu. |
$expectedSubclass | string | If not empty, a check will be performed whether a found file extends the given subclass. If the requested file exists but does not extend this class a warning will be shown to advice a developer to extend this certain class. |
return | stdClass[] |