| Conditions | 2 |
| Paths | 2 |
| Total Lines | 16 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 28 | public function getAdminTemplate($name, $adminCode) |
||
| 29 | { |
||
| 30 | $templates = [ |
||
| 31 | 'base_list_field' => '@SonataAdmin/CRUD/base_list_field.html.twig', |
||
| 32 | ]; |
||
| 33 | |||
| 34 | if (isset($templates[$name])) { |
||
| 35 | return $templates[$name]; |
||
| 36 | } |
||
| 37 | |||
| 38 | throw new \Exception(sprintf( |
||
| 39 | 'Template "%s" of Admin "%s" not found in FakeTemplateRegistry', |
||
| 40 | $name, |
||
| 41 | $adminCode |
||
| 42 | )); |
||
| 43 | } |
||
| 44 | } |
||
| 45 |