public function loadPlugins(array $pluginsToLoad)
    {
        $this->resetTransientCache();
        $this->pluginsToLoad = $this->makePluginsToLoad($pluginsToLoad);
        $this->reloadActivatedPlugins();
    }
public function loadPlugins(array $pluginsToLoad)
    {
        $this->resetTransientCache();
        $this->pluginsToLoad = $this->makePluginsToLoad($pluginsToLoad);
        $this->reloadActivatedPlugins();
    }
public function loadPlugins ( array $ pluginsToLoad ) { $ this -> resetTransientCache ( ) ; $ this -> pluginsToLoad = $ this -> makePluginsToLoad ( $ pluginsToLoad ) ; $ this -> reloadActivatedPlugins ( ) ; }
Load AND activates the specified plugins. It will also overwrite all previously loaded plugins, so it acts
as a setter.

@param array $pluginsToLoad Array of plugins to load.
Load AND activates the specified plugins . It will also overwrite all previously loaded plugins so it acts as a setter .