BaseController::getIndexBreadcrumbs()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 4
dl 0
loc 6
c 0
b 0
f 0
rs 10
nc 1
nop 0
cc 1
1
<?php
2
3
/*
4
 * This file is part of the thealternativezurich/feedback project.
5
 *
6
 * (c) Florian Moser <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace App\Controller\Administration\Base;
13
14
use App\Controller\Base\BaseFormController;
15
use App\Model\Breadcrumb;
16
17
class BaseController extends BaseFormController
18
{
19
    protected function getIndexBreadcrumbs()
20
    {
21
        return [
22
            new Breadcrumb(
23
                $this->generateUrl('index'),
24
                $this->getTranslator()->trans('index.title', [], 'index')
25
            ),
26
        ];
27
    }
28
}
29