public function getPlugin($name)
    {
        if (!$this->has($name)) {
            throw new PluginNotFoundException($name, array_keys($this->plugins));
        }

        return $this->plugins[$name];
    }
public function getPlugin($name)
    {
        if (!$this->has($name)) {
            throw new PluginNotFoundException($name, array_keys($this->plugins));
        }

        return $this->plugins[$name];
    }
public function getPlugin ( $ name ) { if ( ! $ this -> has ( $ name ) ) { throw new PluginNotFoundException ( $ name , array_keys ( $ this -> plugins ) ) ; } return $ this -> plugins [ $ name ] ; }
Returns plugin by name.

@param string $name

@return PluginInterface

@throws PluginNotFoundException
Returns plugin by name .