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

class TemplateReference extends TemplateReference Internal representation of a template. Methods __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 Template

TemplatePathsCacheWarmer::warmUp()

warmUp(string $cacheDir) Warms up the cache. Parameters string $cacheDir The cache directory

TemplatePathsCacheWarmer::isOptional()

bool isOptional() Checks whether this warmer is optional or not. Return Value bool true if the warmer is optional, false otherwise

TemplatePathsCacheWarmer

class TemplatePathsCacheWarmer extends CacheWarmer Computes the association between template names and their paths on the disk. Methods __construct(TemplateFinderInterface $finder, TemplateLocator $locator) Constructor. warmUp(string $cacheDir) Warms up the cache. bool isOptional() Checks whether this warmer is optional or not. Details __construct(TemplateFinderInterface $finder, TemplateLocator $locator) Constructor. Parameters Te

TemplateNameParserInterface

interface TemplateNameParserInterface TemplateNameParserInterface converts template names to TemplateReferenceInterface instances. Methods TemplateReferenceInterface parse(string|TemplateReferenceInterface $name) Convert a template name to a TemplateReferenceInterface instance. Details TemplateReferenceInterface parse(string|TemplateReferenceInterface $name) Convert a template name to a TemplateReferenceInterface instance. Parameters string|T

TemplateNameParser

class TemplateNameParser implements TemplateNameParserInterface TemplateNameParser is the default implementation of TemplateNameParserInterface. This implementation takes everything as the template name and the extension for the engine. Methods TemplateReferenceInterface parse(string|TemplateReferenceInterface $name) Convert a template name to a TemplateReferenceInterface instance. Details TemplateReferenceInterface parse(string|TemplateReferenceInterface

TemplateNameParser

class TemplateNameParser extends TemplateNameParser TemplateNameParser converts template names from the short notation "bundle:section:template.format.engine" to TemplateReferenceInterface instances. Methods TemplateReferenceInterface parse(string|TemplateReferenceInterface $name) Convert a template name to a TemplateReferenceInterface instance. __construct(KernelInterface $kernel) Constructor. Details TemplateReferenceInterface parse(string|TemplateR

TemplateManager::getTemplates()

array getTemplates(Profile $profile) Gets the templates for a given profile. Parameters Profile $profile Return Value array

TemplateManager::getName()

mixed getName(Profile $profile, string $panel) Gets the template name for a given panel. Parameters Profile $profile string $panel Return Value mixed Exceptions NotFoundHttpException