public function TestLoader::getSource in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/system/tests/modules/twig_loader_test/src/Loader/TestLoader.php \Drupal\twig_loader_test\Loader\TestLoader::getSource()
File
- core/
modules/ system/ tests/ modules/ twig_loader_test/ src/ Loader/ TestLoader.php, line 20 - Contains \Drupal\twig_loader_test\Loader\TestLoader.
Class
- TestLoader
- A test Twig loader.
Namespace
Drupal\twig_loader_test\LoaderCode
public function getSource($name) {
if ($name == 'kittens') {
return $name;
}
else {
return 'cats';
}
}