Elcodi\Store\CoreBundle\Services\TemplateLocator::findTemplate PHP Метод

findTemplate() защищенный Метод

Finds the template in all the bundles.
protected findTemplate ( string $templatePath ) : boolean | string
$templatePath string The template to search.
Результат boolean | string The string found or false if not found
    protected function findTemplate($templatePath)
    {
        foreach ($this->bundles as $bundleName) {
            $templateName = "{$bundleName}:{$templatePath}";
            if ($this->engine->exists($templateName)) {
                return $templateName;
            }
        }
        return false;
    }