The file locator is used to locate the template when the naming convention
is the symfony one (i.e. the name can be parsed).
Otherwise the template is located using the locator from the twig library.
protected findTemplate ( string | Symfony\Component\Templating\TemplateReferenceInterface $template, boolean $throw = true ) : string | ||
$template | string | Symfony\Component\Templating\TemplateReferenceInterface | The template |
$throw | boolean | When true, a \Twig_Error_Loader exception will be thrown if a template could not be found |
Résultat | string | The path to the template file |