Commit ae851919 authored by alexpott's avatar alexpott

Issue #2538294 by Aki Tendo: Formally declare public scope in \Drupal\Core\Template\TwigNodeVisitor

parent 3349d702
......@@ -21,14 +21,14 @@ class TwigNodeVisitor implements \Twig_NodeVisitorInterface {
/**
* {@inheritdoc}
*/
function enterNode(\Twig_NodeInterface $node, \Twig_Environment $env) {
public function enterNode(\Twig_NodeInterface $node, \Twig_Environment $env) {
return $node;
}
/**
* {@inheritdoc}
*/
function leaveNode(\Twig_NodeInterface $node, \Twig_Environment $env) {
public function leaveNode(\Twig_NodeInterface $node, \Twig_Environment $env) {
// We use this to inject a call to render_var -> TwigExtension->renderVar()
// before anything is printed.
if ($node instanceof \Twig_Node_Print) {
......@@ -62,7 +62,7 @@ function leaveNode(\Twig_NodeInterface $node, \Twig_Environment $env) {
/**
* {@inheritdoc}
*/
function getPriority() {
public function getPriority() {
// Just above the Optimizer, which is the normal last one.
return 256;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment