TemplateReference
extends TemplateReference
in package
Internal representation of a template.
Tags
Table of Contents
- __construct() : mixed
- getLogicalName() : mixed
- {@inheritdoc}
- getPath() : string
- 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.
Methods
__construct()
public
__construct([string $bundle = null ][, string $controller = null ][, string $name = null ][, string $format = null ][, string $engine = null ]) : mixed
Parameters
- $bundle : string = null
- $controller : string = null
- $name : string = null
- $format : string = null
- $engine : string = null
Return values
mixed —getLogicalName()
{@inheritdoc}
public
getLogicalName() : mixed
Return values
mixed —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.
public
getPath() : string
Return values
string —A path to the template or a resource