From 6b214edf1f47c3af0e5197899f6188a628063edf Mon Sep 17 00:00:00 2001 From: Luke Towers Date: Thu, 27 Aug 2020 15:47:42 -0600 Subject: [PATCH] Add getAllPlugins() method to PluginManager --- modules/system/classes/PluginManager.php | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/modules/system/classes/PluginManager.php b/modules/system/classes/PluginManager.php index d5caf21cb..dff071c75 100644 --- a/modules/system/classes/PluginManager.php +++ b/modules/system/classes/PluginManager.php @@ -346,15 +346,24 @@ class PluginManager /** * Returns an array with all enabled plugins - * The index is the plugin namespace, the value is the plugin information object. * - * @return array + * @return array [$code => $pluginObj] */ public function getPlugins() { return array_diff_key($this->plugins, $this->disabledPlugins); } + /** + * Returns an array will all plugins detected on the filesystem + * + * @return array [$code => $pluginObj] + */ + public function getAllPlugins() + { + return $this->plugins; + } + /** * Returns a plugin registration class based on its namespace (Author\Plugin). *