function TestLoader::getSource

File

core/modules/system/tests/modules/twig_loader_test/src/Loader/TestLoader.php, line 24

Class

TestLoader
A test Twig loader.

Namespace

Drupal\twig_loader_test\Loader

Code

public function getSource($name) {
    return $this->getSourceContext($name)
        ->getCode();
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.