Carew\Twig\NodeVisitor\Paginator::alterRenderDocumentsWithPagination PHP Method

alterRenderDocumentsWithPagination() private method

    private function alterRenderDocumentsWithPagination()
    {
        if (!$this->currentRenderDocuments) {
            return;
        }
        $args = $this->currentRenderDocuments->getNode('arguments');
        $args->setNode(1, new \Twig_Node_Expression_Name(sprintf('__pages_%s__', $this->currentNumberOfPagination), 1));
        $args->setNode(2, new \Twig_Node_Expression_Name(sprintf('__current_page_%s__', $this->currentNumberOfPagination), 1));
    }