src/Plugin/PluggableTrait.php
protected function findPlugin($method)
    {
        if ( ! isset($this->plugins[$method])) {
            throw new PluginNotFoundException('Plugin not found for method: ' . $method);
        }

        return $this->plugins[$method];
    }
protected function findPlugin($method)
    {
        if ( ! isset($this->plugins[$method])) {
            throw new PluginNotFoundException('Plugin not found for method: ' . $method);
        }

        return $this->plugins[$method];
    }
protected function findPlugin ( $ method ) { if ( ! isset ( $ this -> plugins [ $ method ] ) ) { throw new PluginNotFoundException ( 'Plugin not found for method: ' . $ method ) ; } return $ this -> plugins [ $ method ] ; }
Find a specific plugin.

@param string $method

@throws PluginNotFoundException

@return PluginInterface
Find a specific plugin .