Total Complexity | 3 |
Total Lines | 32 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
18 | class StaticReferenceTranslationAdmin extends Admin |
||
|
|||
19 | { |
||
20 | protected $parentAssociationMapping = 'static_reference'; |
||
21 | |||
22 | /** |
||
23 | * @{inheritDoc} |
||
24 | */ |
||
25 | public function configureListFields(ListMapper $listMapper) |
||
26 | { |
||
27 | $listMapper |
||
28 | ->addIdentifier('url'); |
||
29 | } |
||
30 | |||
31 | /** |
||
32 | * @{inheritDoc} |
||
33 | */ |
||
34 | protected function configureFormFields(FormMapper $form) |
||
35 | { |
||
36 | $form |
||
37 | ->with('General') |
||
38 | ->add('locale', null, array('required' => true)) |
||
39 | ->add('url', null, array('required' => true)) |
||
40 | ->end(); |
||
41 | } |
||
42 | |||
43 | /** |
||
44 | * @{inheritDoc} |
||
45 | */ |
||
46 | protected function configureShowFields(ShowMapper $show) |
||
50 | } |
||
51 | } |
||
52 |