TemplateReferenceInterface::getPath()

string getPath() Returns the path to the template. By default, it just returns the template name. Return Value string A path to the template or a resource

TemplateReferenceInterface::getLogicalName()

string getLogicalName() Returns the "logical" template name. The template name acts as a unique identifier for the template. Return Value string The template name

TemplatingExtension

class TemplatingExtension extends AbstractExtension Integrates the Templating component with the Form library. Methods FormTypeInterface getType(string $name) Returns a type by name. from AbstractExtension bool hasType(string $name) Returns whether the given type is supported. from AbstractExtension FormTypeExtensionInterface[] getTypeExtensions(string $name) Returns the extensions for the given type. from AbstractExtension bool hasTypeExtensions(string $name) Returns whether

TemplateReference::getPath()

string getPath() Returns the path to the template. By default, it just returns the template name. Return Value string A path to the template or a resource

TemplateReferenceInterface

interface TemplateReferenceInterface Interface to be implemented by all templates. Methods array all() Gets the template parameters. TemplateReferenceInterface set(string $name, string $value) Sets a template parameter. string get(string $name) Gets a template parameter. string getPath() Returns the path to the template. string getLogicalName() Returns the "logical" template name. string __toString() Returns the string representation as shortcut for getLogicalNam

TemplateReferenceInterface::all()

array all() Gets the template parameters. Return Value array An array of parameters

TemplateReference::getLogicalName()

string getLogicalName() Returns the "logical" template name. The template name acts as a unique identifier for the template. Return Value string The template name

TemplateReference

class TemplateReference implements TemplateReferenceInterface Internal representation of a template. Methods __construct($name = null, $engine = null) string __toString() Returns the string representation as shortcut for getLogicalName(). TemplateReferenceInterface set(string $name, string $value) Sets a template parameter. string get(string $name) Gets a template parameter. array all() Gets the template parameters. string getPath() Returns the path to the templ

TemplateReference::all()

array all() Gets the template parameters. Return Value array An array of parameters

TemplateReference::getPath()

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. Return Value string A path to the template or a resource