src/Controller/Plugin/PaginationBuilder.php
protected function callPlugin($name, $args)
    {
        /* @var \Zend\Mvc\Controller\AbstractController $controller */
        $controller = $this->getController();
        $plugin = $controller->plugin($name);

        /* We remove the array entry with the key "as" here.
         * because we want to keep it in the stack array */
        unset($args['as']);

        /* Inject the internal parameters as last argument.
         * This is needed to prevent messing with the original query params. */
        array_push($args, $this->parameters);

        return call_user_func_array($plugin, $args);
    }
protected function callPlugin($name, $args)
    {
        /* @var \Zend\Mvc\Controller\AbstractController $controller */
        $controller = $this->getController();
        $plugin = $controller->plugin($name);

        /* We remove the array entry with the key "as" here.
         * because we want to keep it in the stack array */
        unset($args['as']);

        /* Inject the internal parameters as last argument.
         * This is needed to prevent messing with the original query params. */
        array_push($args, $this->parameters);

        return call_user_func_array($plugin, $args);
    }
protected function callPlugin ( $ name , $ args ) { /* @var \Zend\Mvc\Controller\AbstractController $controller */ $ controller = $ this -> getController ( ) ; $ plugin = $ controller -> plugin ( $ name ) ; /* We remove the array entry with the key "as" here.
         * because we want to keep it in the stack array */ unset ( $ args [ 'as' ] ) ; /* Inject the internal parameters as last argument.
         * This is needed to prevent messing with the original query params. */ array_push ( $ args , $ this -> parameters ) ; return call_user_func_array ( $ plugin , $ args ) ; }
Calls an invokable controller plugin.

@param string $name
@param array $args

@return mixed The return value of the called plugin.
Calls an invokable controller plugin .