summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Pott2015-07-27 13:14:30 (GMT)
committerAlex Pott2015-07-27 13:14:30 (GMT)
commitae85191918a26e337023933d1f51666c143b1cdc (patch)
tree9e6b8dd3598da27d0a6ae4512e1b2006df40b3e0
parent3349d702b478715d2b85054f44b93683e28e18e3 (diff)
Issue #2538294 by Aki Tendo: Formally declare public scope in \Drupal\Core\Template\TwigNodeVisitor
-rw-r--r--core/lib/Drupal/Core/Template/TwigNodeVisitor.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/lib/Drupal/Core/Template/TwigNodeVisitor.php b/core/lib/Drupal/Core/Template/TwigNodeVisitor.php
index a08ec2d..ac1e676 100644
--- a/core/lib/Drupal/Core/Template/TwigNodeVisitor.php
+++ b/core/lib/Drupal/Core/Template/TwigNodeVisitor.php
@@ -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 @@ class TwigNodeVisitor implements \Twig_NodeVisitorInterface {
/**
* {@inheritdoc}
*/
- function getPriority() {
+ public function getPriority() {
// Just above the Optimizer, which is the normal last one.
return 256;
}