You are here

public function Twig_Loader_Filesystem::getPaths in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/twig/twig/lib/Twig/Loader/Filesystem.php \Twig_Loader_Filesystem::getPaths()

Returns the paths to the templates.

Parameters

string $namespace A path namespace:

Return value

array The array of paths where to look for templates

File

vendor/twig/twig/lib/Twig/Loader/Filesystem.php, line 45

Class

Twig_Loader_Filesystem
Loads template from the filesystem.

Code

public function getPaths($namespace = self::MAIN_NAMESPACE) {
  return isset($this->paths[$namespace]) ? $this->paths[$namespace] : array();
}