protected function getPluginsFolder()
{
if (empty($this->pluginsFolder)) {
$path = empty($this->config['pluginsFolder']) ? WP_PLUGIN_DIR : realpath($this->getWpRootFolder() . Utils::unleadslashit($this->config['pluginsFolder']));
if (!file_exists($path)) {
throw new ModuleConfigException(__CLASS__, "The path to the plugins folder ('{$path}') doesn't exist.");
}
$this->pluginsFolder = Utils::untrailslashit($path);
}
return $this->pluginsFolder;
}