return $node;
}
$class = get_class($node);
- $line = $node->getLine();
+ $line = $node->getTemplateLine();
return new $class(
new \Twig_Node_Expression_Function('render_var', new \Twig_Node([$node->getNode('expr')]), $line),
$line
elseif ($node instanceof \Twig_Node_Expression_Filter) {
$name = $node->getNode('filter')->getAttribute('value');
if ('escape' == $name || 'e' == $name) {
- // Use our own escape filter that is SafeMarkup aware.
+ // Use our own escape filter that is MarkupInterface 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;
}
}