Piwik\Plugin\Manager::makeSureOnlyActivatedPluginsAreLoaded PHP Method

makeSureOnlyActivatedPluginsAreLoaded() private method

    private function makeSureOnlyActivatedPluginsAreLoaded()
    {
        foreach ($this->getLoadedPlugins() as $pluginName => $plugin) {
            if (!in_array($pluginName, $this->pluginsToLoad)) {
                $this->unloadPlugin($plugin);
            }
        }
    }
Manager