1 | <?php |
||
19 | class PageSettings extends CRUDElement implements SecuredElementInterface |
||
20 | { |
||
21 | public function isAllowed(AuthorizationCheckerInterface $authorizationChecker) |
||
22 | { |
||
23 | return $authorizationChecker->isGranted('ROLE_ADMIN'); |
||
24 | } |
||
25 | |||
26 | public function getClassName() |
||
27 | { |
||
28 | return 'FSiFixturesBundle:PageSettings'; |
||
29 | } |
||
30 | |||
31 | public function getId() |
||
32 | { |
||
33 | return 'page_settings'; |
||
34 | } |
||
35 | |||
36 | public function getName() |
||
37 | { |
||
38 | return 'Page settings'; |
||
39 | } |
||
40 | |||
41 | protected function initDataGrid(DataGridFactoryInterface $factory) |
||
42 | { |
||
43 | return null; |
||
44 | } |
||
45 | |||
46 | protected function initDataSource(DataSourceFactoryInterface $factory) |
||
47 | { |
||
48 | return null; |
||
49 | } |
||
50 | |||
51 | protected function initForm(FormFactoryInterface $factory, $data = null) |
||
52 | { |
||
53 | return null; |
||
54 | } |
||
55 | } |
||
56 |