You are here

protected function Twig_Test_NodeTestCase::getAttributeGetter in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/twig/twig/lib/Twig/Test/NodeTestCase.php \Twig_Test_NodeTestCase::getAttributeGetter()
1 call to Twig_Test_NodeTestCase::getAttributeGetter()
Twig_Tests_Node_Expression_GetAttrTest::getTests in vendor/twig/twig/test/Twig/Tests/Node/Expression/GetAttrTest.php

File

vendor/twig/twig/lib/Twig/Test/NodeTestCase.php, line 56

Class

Twig_Test_NodeTestCase

Code

protected function getAttributeGetter() {
  if (function_exists('twig_template_get_attributes')) {
    return 'twig_template_get_attributes($this, ';
  }
  return '$this->getAttribute(';
}