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

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

TemplateReferenceInterface::all()

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

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

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

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

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::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::all()

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