W3cubDocs

/Symfony 4.1

TemplateNameParserInterface

interface TemplateNameParserInterface

TemplateNameParserInterface converts template names to TemplateReferenceInterface instances.

Methods

TemplateReferenceInterface parse(string|TemplateReferenceInterface $name)

Convert a template name to a TemplateReferenceInterface instance.

Details

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

© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Component/Templating/TemplateNameParserInterface.html