Symfony API
Class

Symfony\Component\Templating\TemplateNameParser

class TemplateNameParser implements TemplateNameParserInterface

TemplateNameParser is the default implementation of TemplateNameParserInterface.

This implementation takes everything as the template name and the extension for the engine.

Methods

TemplateReferenceInterface parse(string|TemplateReferenceInterface $name)

Convert a template name to a TemplateReferenceInterface instance.

Details

at line 27
public 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