public function Twig_Loader_String::getSource

Gets the source code of a template, given its name.

Parameters

string $name The name of the template to load:

Return value

string The template source code

Throws

Twig_Error_Loader When $name is not found

Overrides Twig_LoaderInterface::getSource

File

drupal/core/vendor/twig/twig/lib/Twig/Loader/String.php, line 31

Class

Twig_Loader_String
Loads a template from a string.

Code

public function getSource($name) {
  return $name;
}