getLoader(); if (!$loader->exists($name)) { continue; } } // Throws LoaderError: Unable to find template "%s". return $this->loadTemplate($name); } throw new LoaderError(sprintf('Unable to find one of the following templates: "%s".', implode('", "', $names))); } }