BaseController   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 5
dl 0
loc 8
c 0
b 0
f 0
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A getIndexBreadcrumbs() 0 6 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