class TemplateReference extends TemplateReference
Internal representation of a template.
__construct($bundle = null, $controller = null, $name = null, $format = null, $engine = null) | ||
string | __toString() Returns the string representation as shortcut for getLogicalName(). | 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 - as a path when the template is not part of a bundle - as a resource when the template is part of a bundle. | |
string | getLogicalName() Returns the "logical" template name. |
Returns the string representation as shortcut for getLogicalName().
Alias of getLogicalName().
Sets a template parameter.
Gets a template parameter.
Gets the template parameters.
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.
The template name acts as a unique identifier for the template.
© 2004–2016 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/3.0/Symfony/Bundle/FrameworkBundle/Templating/TemplateReference.html