public function Twig_Loader_Filesystem::setPaths

Sets the paths where templates are stored.

Parameters

string|array $paths A path or an array of paths where to look for templates:

1 call to Twig_Loader_Filesystem::setPaths()
Twig_Loader_Filesystem::__construct in drupal/core/vendor/twig/twig/lib/Twig/Loader/Filesystem.php
Constructor.

File

drupal/core/vendor/twig/twig/lib/Twig/Loader/Filesystem.php, line 48

Class

Twig_Loader_Filesystem
Loads template from the filesystem.

Code

public function setPaths($paths) {
  if (!is_array($paths)) {
    $paths = array(
      $paths,
    );
  }
  $this->paths = array();
  foreach ($paths as $path) {
    $this
      ->addPath($path);
  }
}