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