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

TemplatePathsCacheWarmer::isOptional()

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

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

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 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

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

TemplateManager::getTemplates()

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

TemplateLocator

class TemplateLocator implements FileLocatorInterface TemplateLocator locates templates in bundles. Methods __construct(FileLocatorInterface $locator, string $cacheDir = null) Constructor. string|array locate(TemplateReferenceInterface $template, string|null $currentPath = null, bool $first = true) Returns a full path for a given file. Details __construct(FileLocatorInterface $locator, string $cacheDir = null) Constructor. Parameters Fi