EngineInterface::exists()

bool exists(string|TemplateReferenceInterface $name)

Returns true if the template exists.

Parameters

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

Return Value

bool true if the template exists, false otherwise

Exceptions

RuntimeException if the engine cannot handle the template name
doc_Symfony
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.