TwigExtension::getNodeVisitors

public TwigExtension::getNodeVisitors()

File

core/lib/Drupal/Core/Template/TwigExtension.php, line 179

Class

TwigExtension
A class providing Drupal Twig extensions.

Namespace

Drupal\Core\Template

Code

public function getNodeVisitors() {
  // The node visitor is needed to wrap all variables with
  // render_var -> TwigExtension->renderVar() function.
  return array(
    new TwigNodeVisitor(),
  );
}
doc_Drupal
2016-10-29 09:49:40
Comments
Leave a Comment

Please login to continue.