You are here

public function Twig_Loader_Filesystem::getPaths in Translation template extractor 7.3

Same name and namespace in other branches
  1. 6.3 vendor/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/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();
}