Ejemplo n.º 1
0
 /**
  * Get template vars in a format Twig will use (from the context)
  *
  * @return array
  */
 protected function get_template_vars()
 {
     $vars = $this->gantry['theme']->add_to_context(parent::get_template_vars());
     $locator = $this->gantry['locator'];
     $loader = $this->twig->getLoader();
     foreach ($locator->findResources('gantry-theme://twig') as $path) {
         $loader->addPath($path);
     }
     return $vars;
 }