public function getPluginsLoadedAndActivated()
    {
        if (is_null($this->pluginsLoadedAndActivated)) {
            $enabled = $this->getActivatedPlugins();

            if (empty($enabled)) {
                return array();
            }

            $plugins = $this->getLoadedPlugins();
            $enabled = array_combine($enabled, $enabled);
            $plugins = array_intersect_key($plugins, $enabled);

            $this->pluginsLoadedAndActivated = $plugins;
        }

        return $this->pluginsLoadedAndActivated;
    }
public function getPluginsLoadedAndActivated()
    {
        if (is_null($this->pluginsLoadedAndActivated)) {
            $enabled = $this->getActivatedPlugins();

            if (empty($enabled)) {
                return array();
            }

            $plugins = $this->getLoadedPlugins();
            $enabled = array_combine($enabled, $enabled);
            $plugins = array_intersect_key($plugins, $enabled);

            $this->pluginsLoadedAndActivated = $plugins;
        }

        return $this->pluginsLoadedAndActivated;
    }
public function getPluginsLoadedAndActivated ( ) { if ( is_null ( $ this -> pluginsLoadedAndActivated ) ) { $ enabled = $ this -> getActivatedPlugins ( ) ; if ( empty ( $ enabled ) ) { return array ( ) ; } $ plugins = $ this -> getLoadedPlugins ( ) ; $ enabled = array_combine ( $ enabled , $ enabled ) ; $ plugins = array_intersect_key ( $ plugins , $ enabled ) ; $ this -> pluginsLoadedAndActivated = $ plugins ; } return $ this -> pluginsLoadedAndActivated ; }
Returns an array of plugins that are currently loaded and activated,
mapping loaded plugin names with their plugin objects, eg,

array(
'UserCountry' => Plugin $pluginObject,
'UserLanguage' => Plugin $pluginObject,
);

@return Plugin[]
Returns an array of plugins that are currently loaded and activated mapping loaded plugin names with their plugin objects eg