Skip to content
Snippets Groups Projects
Commit ae851919 authored by Alex Pott's avatar Alex Pott
Browse files

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

parent 3349d702
Branches
Tags
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment