return $name;
} // Throw a useful error when the template cannot be found
if ($originalTemplate === null
) { if ($ignoreMissing === true
) { return $templatePath;
} throw new LoaderError(sprintf('Unable to load template "%s". (Looked into: %s)',
$templatePath,
implode(', ',
array_values($modifiedQueue))));
} // if no other bundle extends the requested template, load the original template
if ($this->loader->
exists($originalTemplate)) { return $originalTemplate;
} if ($ignoreMissing === true
) { return $templatePath;
}