class TemplateReference extends TemplateReference
Internal representation of a template.
Methods
| __construct($bundle = null, $controller = null, $name = null, $format = null, $engine = null) | ||
| __toString() | from TemplateReference | |
| TemplateReferenceInterface |
set(string $name, string $value)
Sets a template parameter. |
from TemplateReference |
| string |
get(string $name)
Gets a template parameter. |
from TemplateReference |
| array |
all()
Gets the template parameters. |
from TemplateReference |
| string |
getPath()
Returns the path to the template. |
|
| string |
getLogicalName()
Returns the "logical" template name. |
Details
at line 23
public
__construct($bundle = null, $controller = null, $name = null, $format = null, $engine = null)
in TemplateReference at line 33
public
__toString()
in TemplateReference at line 50
public TemplateReferenceInterface
set(string $name, string $value)
Sets a template parameter.
in TemplateReference at line 72
public string
get(string $name)
Gets a template parameter.
in TemplateReference at line 88
public array
all()
Gets the template parameters.
at line 41
public string
getPath()
Returns the path to the template.
By default, it just returns the template name.
at line 53
public string
getLogicalName()
Returns the "logical" template name.
The template name acts as a unique identifier for the template.