Conditions | 1 |
Paths | 1 |
Total Lines | 20 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
42 | protected function configureShowFields(ShowMapper $show) |
||
43 | { |
||
44 | $show |
||
45 | ->tab('tab.label_content') |
||
46 | ->with('fieldset.label_general')->end() |
||
47 | ->with('fieldset.label_parameters')->end() |
||
48 | ->with('fieldset.label_preview') |
||
49 | ->add('formats', null, [ |
||
50 | 'label' => 'form.label_formats', |
||
51 | 'mapped' => false, |
||
52 | 'template' => '@SmartContent/admin/show_format.html.twig', |
||
53 | 'formats' => [ |
||
54 | 'smart_content_list_thumb', |
||
55 | 'smart_content_show_thumb' |
||
56 | ]// Todo handle this with configuration https://github.com/smartbooster/content-bundle/issues/7 |
||
57 | ]) |
||
58 | ->end() |
||
59 | ->end() |
||
60 | ; |
||
61 | } |
||
62 | } |
||
63 |