function TwigNodeVisitor::getPriority

Implements Twig_NodeVisitorInterface::getPriority().

File

drupal/core/lib/Drupal/Core/Template/TwigNodeVisitor.php, line 91
Definition of Drupal\Core\Template\TwigNodeVisitor.

Class

TwigNodeVisitor
Provides a Twig_NodeVisitor to change the generated parse-tree.

Namespace

Drupal\Core\Template

Code

function getPriority() {

  // We want to run before other NodeVisitors like Escape or Optimizer
  return -1;
}