| Conditions | 2 |
| Paths | 2 |
| Total Lines | 9 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 49 | private function _resolveTemplate(string $name): string |
||
| 50 | { |
||
| 51 | $template = $this->view->resolveTemplate($name); |
||
| 52 | |||
| 53 | if ($template !== false) { |
||
| 54 | return $template; |
||
| 55 | } |
||
| 56 | |||
| 57 | throw new TemplateLoaderException($name, Craft::t('app', 'Unable to find the template “{template}”.', ['template' => $name])); |
||
| 58 | } |
||
| 60 |