src/AbstractController.php
public function plugin(string $name, array $options = []): PluginInterface
    {
        return $this->getPluginManager()->get($name, $options);
    }
public function plugin(string $name, array $options = []): PluginInterface
    {
        return $this->getPluginManager()->get($name, $options);
    }
public function plugin ( string $ name , array $ options = [ ] ) : PluginInterface { return $ this -> getPluginManager ( ) -> get ( $ name , $ options ) ; }
Get plugin instance

@param  string $name Name of plugin to return
@param  array $options Options to pass to plugin constructor (if not already instantiated)
@return PluginInterface|callable
Get plugin instance