public function getLoadedPlugin($name)
    {
        if (!isset($this->loadedPlugins[$name]) || is_null($this->loadedPlugins[$name])) {
            throw new \Exception("The plugin '$name' has not been loaded.");
        }
        return $this->loadedPlugins[$name];
    }
public function getLoadedPlugin($name)
    {
        if (!isset($this->loadedPlugins[$name]) || is_null($this->loadedPlugins[$name])) {
            throw new \Exception("The plugin '$name' has not been loaded.");
        }
        return $this->loadedPlugins[$name];
    }
public function getLoadedPlugin ( $ name ) { if ( ! isset ( $ this -> loadedPlugins [ $ name ] ) || is_null ( $ this -> loadedPlugins [ $ name ] ) ) { throw new \ Exception ( "The plugin '$name' has not been loaded." ) ; } return $ this -> loadedPlugins [ $ name ] ; }
Returns a Plugin object by name.

@param string $name The name of the plugin, eg, `'Actions'`.
@throws \Exception If the plugin has not been loaded.
@return Plugin
Returns a Plugin object by name .