public function enterNode(\Twig_NodeInterface $node, \Twig_Environment $env)
{
if ($node instanceof \Twig_Node_Module) {
$this->currentModule = $node;
$this->currentNumberOfPagination = 0;
} elseif ($node instanceof \Twig_Node_Expression_Function) {
$name = $node->getAttribute('name');
if ('paginate' == $name) {
$node = $this->enterPaginationFilterNode($node, $env);
++$this->currentNumberOfPagination;
return $node;
}
if ('render_documents' == $name) {
$this->currentRenderDocuments = $node;
}
}
return $node;
}