TemplateReference
class TemplateReference extends TemplateReference
Internal representation of a template.
Methods
No description
Returns the string representation as shortcut for getLogicalName().
Sets a template parameter.
Returns the path to the template - as a path when the template is not part of a bundle - as a resource when the template is part of a bundle.
Returns the "logical" template name.
Details
at line line 23
__construct($bundle = null, $controller = null, $name = null, $format = null, $engine = null)
in TemplateReference at line line 34
string
__toString()
Returns the string representation as shortcut for getLogicalName().
Alias of getLogicalName().
in TemplateReference at line line 42
TemplateReferenceInterface
set(string $name, string $value)
Sets a template parameter.
in TemplateReference at line line 56
string
get(string $name)
Gets a template parameter.
in TemplateReference at line line 68
array
all()
Gets the template parameters.
at line line 41
string
getPath()
Returns the path to the template - as a path when the template is not part of a bundle - as a resource when the template is part of a bundle.
at line line 53
string
getLogicalName()
Returns the "logical" template name.
The template name acts as a unique identifier for the template.