projects
/
yaffs-website
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website]
/
web
/
core
/
lib
/
Drupal
/
Core
/
Template
/
TwigNodeVisitor.php
diff --git
a/web/core/lib/Drupal/Core/Template/TwigNodeVisitor.php
b/web/core/lib/Drupal/Core/Template/TwigNodeVisitor.php
index 1ebfa57de92aac065b397b158fdfcaacab0da9e6..8a5dc05d75084a5242064daece5b060e0387abac 100644
(file)
--- a/
web/core/lib/Drupal/Core/Template/TwigNodeVisitor.php
+++ b/
web/core/lib/Drupal/Core/Template/TwigNodeVisitor.php
@@
-33,7
+33,7
@@
class TwigNodeVisitor extends \Twig_BaseNodeVisitor {
return $node;
}
$class = get_class($node);
return $node;
}
$class = get_class($node);
- $line = $node->getLine();
+ $line = $node->get
Template
Line();
return new $class(
new \Twig_Node_Expression_Function('render_var', new \Twig_Node([$node->getNode('expr')]), $line),
$line
return new $class(
new \Twig_Node_Expression_Function('render_var', new \Twig_Node([$node->getNode('expr')]), $line),
$line
@@
-46,7
+46,8
@@
class TwigNodeVisitor extends \Twig_BaseNodeVisitor {
// Use our own escape filter that is SafeMarkup aware.
$node->getNode('filter')->setAttribute('value', 'drupal_escape');
// Use our own escape filter that is SafeMarkup aware.
$node->getNode('filter')->setAttribute('value', 'drupal_escape');
- // Store that we have a filter active already that knows how to deal with render arrays.
+ // Store that we have a filter active already that knows
+ // how to deal with render arrays.
$this->skipRenderVarFunction = TRUE;
}
}
$this->skipRenderVarFunction = TRUE;
}
}