protected function ResponseTemplateLoader::findTemplate in Apigee Edge 8
File
- tests/
modules/ apigee_mock_api_client/ src/ TwigExtension/ ResponseTemplateLoader.php, line 55
Class
- ResponseTemplateLoader
- Loads templates from the response-templates folder of a module.
Namespace
Drupal\apigee_mock_api_client\TwigExtensionCode
protected function findTemplate($name, $throw = TRUE) {
$name = str_replace('_', '-', $name);
if (strpos($name, '.twig') === FALSE) {
$name = "{$name}.json.twig";
}
return parent::findTemplate($name, $throw);
}