class TemplateFilenameParser implements TemplateNameParserInterface

deprecated since version 4.3, to be removed in 5.0; use Twig instead.

TemplateFilenameParser converts template filenames to TemplateReferenceInterface instances.

Methods

parse(string|TemplateReferenceInterface $name)

Convert a template name to a TemplateReferenceInterface instance.

Details

at line 32
TemplateReferenceInterface parse(string|TemplateReferenceInterface $name)

Convert a template name to a TemplateReferenceInterface instance.

Parameters

string|TemplateReferenceInterface $name A template name or a TemplateReferenceInterface instance

Return Value

TemplateReferenceInterface A template