Jelix\Core\AppInstance::getAllPluginsPath PHP Method

getAllPluginsPath() public method

return all paths of directories containing plugins, even those which are in disabled modules.
public getAllPluginsPath ( ) : string[]
return string[]
    public function getAllPluginsPath()
    {
        if ($this->_allPluginsPath === null) {
            $this->_allPluginsPath = array_map(function ($path) {
                return rtrim($path, '/\\') . DIRECTORY_SEPARATOR;
            }, $this->_pluginsDirPath);
            foreach ($this->getAllModulesPath() as $name => $path) {
                $p = $path . 'plugins' . DIRECTORY_SEPARATOR;
                if (file_exists($p) && is_dir($p) && !in_array($p, $this->_allPluginsPath)) {
                    $this->_allPluginsPath[] = $p;
                }
            }
            $bundled = realpath(__DIR__ . '/../../jelix-legacy/plugins/') . DIRECTORY_SEPARATOR;
            if (file_exists($bundled) && !in_array($p, $this->_allPluginsPath)) {
                array_unshift($this->_allPluginsPath, $bundled);
            }
        }
        return $this->_allPluginsPath;
    }