class FileSystemLoader extends FilesystemLoader

Loads twig template from the filesystem.

Methods

string|false|null
findTemplate(string $name, bool $throw = true)

Checks if the template can be found.

Details

at line 25
protected string|false|null findTemplate(string $name, bool $throw = true)

Checks if the template can be found.

Override the parent method to remove the bundle name and replace all ':' by '/' in the template name

Parameters

string $name The template name
bool $throw Whether to throw an exception when an error occurs

Return Value

string|false|null The template name or false/null