| 1 | <?php |
||
| 19 | class News extends CRUDElement implements SecuredElementInterface |
||
| 20 | { |
||
| 21 | public function isAllowed(AuthorizationCheckerInterface $authorizationChecker) |
||
| 22 | { |
||
| 23 | return $authorizationChecker->isGranted('ROLE_REDACTOR'); |
||
| 24 | } |
||
| 25 | |||
| 26 | public function getClassName() |
||
| 27 | { |
||
| 28 | return 'FSiFixturesBundle:News'; |
||
| 29 | } |
||
| 30 | |||
| 31 | public function getId() |
||
| 32 | { |
||
| 33 | return 'news'; |
||
| 34 | } |
||
| 35 | |||
| 36 | public function getName() |
||
| 37 | { |
||
| 38 | return 'News'; |
||
| 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 |