Symfony\Bundle\TwigBundle\Loader\FilesystemLoader::findTemplate
Returns the path to the template file.
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.
Signature
protected function findTemplate(string|TemplateReferenceInterface
$template )
Parameters
$template
— object- The template
Returns
- string
- The path to the template file
Errors/Exceptions
-
Twig_Error_Loader
- if the template could not be found