Piwik\Plugin\Manager::getLoadedPlugins PHP Method

getLoadedPlugins() public method

array( 'UserCountry' => Plugin $pluginObject, 'UserLanguage' => Plugin $pluginObject, );
public getLoadedPlugins ( ) : Plugin[]
return Piwik\Plugin[]
    public function getLoadedPlugins()
    {
        return $this->loadedPlugins;
    }

Usage Example

Example #1
0
 private function assertOnlyTrackerPluginsAreLoaded($expectedPluginNamesLoaded)
 {
     // should currently load between 10 and 25 plugins
     $this->assertLessThan(25, count($this->manager->getLoadedPlugins()));
     $this->assertGreaterThan(10, count($this->manager->getLoadedPlugins()));
     // we need to make sure it actually only loaded the correct ones
     $this->assertEquals($expectedPluginNamesLoaded, array_keys($this->manager->getLoadedPlugins()));
 }
All Usage Examples Of Piwik\Plugin\Manager::getLoadedPlugins
Manager