Methods
Constructor
__construct(array | \Traversable $map)
Instantiate and optionally populate template map.
Parameters
$map
array\Traversable
Add an entry to the map
add(string | array | \Traversable $nameOrMap, null | string $path) : \Zend\View\Resolver\TemplateMapResolver
Parameters
$nameOrMap
stringarray\Traversable
$path
nullstring
Exceptions
Returns
Retrieve a template path by name
get(string $name) : false | string
Parameters
$name
string
Exceptions
Returns
false
string
IteratorAggregate: return internal iterator
getIterator() : \Traversable
Retrieve the template map
getMap() : array
Does the resolver contain an entry for the given name?
has(string $name) : bool
Parameters
$name
string
Returns
bool
Resolve a template/pattern name to a resource the renderer can consume
resolve(string $name, \Zend\View\Renderer\RendererInterface $renderer) : string
Parameters
$name
string
Returns
string
Set (overwrite) template map
setMap(array | \Traversable $map) : \Zend\View\Resolver\TemplateMapResolver
Maps should be arrays or Traversable objects with name => path pairs
Parameters
$map
array\Traversable
Exceptions
Returns
Properties