| Conditions | 3 |
| Paths | 2 |
| Total Lines | 24 |
| Code Lines | 15 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 22 | protected function configureTabMenu(MenuItemInterface $menu, $action, AdminInterface $childAdmin = null) |
||
| 23 | { |
||
| 24 | if (!$childAdmin && !in_array($action, ['list'])) { |
||
| 25 | return; |
||
| 26 | } |
||
| 27 | |||
| 28 | $menu->addChild('link_queue_list', [ |
||
| 29 | 'label' => 'Queues', |
||
| 30 | 'attributes' => ['class' => 'btn', 'icon' => 'fa fa-tasks'], |
||
| 31 | 'route' => 'sonata_queue_list', |
||
| 32 | ]); |
||
| 33 | |||
| 34 | $menu->addChild('link_queue_message_list', [ |
||
| 35 | 'label' => 'Messages', |
||
| 36 | 'attributes' => ['class' => 'btn', 'icon' => 'fa fa-send'], |
||
| 37 | 'route' => 'sonata_queue_message_list', |
||
| 38 | ]); |
||
| 39 | |||
| 40 | $menu->addChild('link_queue_log_list', [ |
||
| 41 | 'label' => 'Exceptions', |
||
| 42 | 'attributes' => ['class' => 'btn', 'icon' => 'fa fa-terminal'], |
||
| 43 | 'route' => 'sonata_queue_log_list', |
||
| 44 | ]); |
||
| 45 | } |
||
| 46 | } |
||
| 47 |