Conditions | 3 |
Paths | 2 |
Total Lines | 16 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 12 |
Changes | 0 |
1 | <?php |
||
13 | public function createAction() |
||
14 | { |
||
15 | if (!$this->getRequest()->get('provider') && $this->getRequest()->isMethod('get')) { |
||
16 | return $this->render( |
||
17 | '@MediaMonksSonataMedia/MediaAdmin/select_provider.html.twig', |
||
18 | [ |
||
19 | 'providers' => $this->get('mediamonks.sonata_media.provider.pool')->getProviders(), |
||
20 | 'base_template' => $this->getBaseTemplate(), |
||
21 | 'admin' => $this->admin, |
||
22 | 'action' => 'create', |
||
23 | ] |
||
24 | ); |
||
25 | } |
||
26 | |||
27 | return parent::createAction(); |
||
28 | } |
||
29 | |||
46 |