Completed
Push — master ( b13563...fa826f )
by WEBEWEB
02:11
created

FOSUserBreadcrumbNodes   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 18
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A getGlyphiconBreadcrumbNodes() 0 10 1
1
<?php
2
3
/*
4
 * This file is part of the bootstrap-bundle package.
5
 *
6
 * (c) 2019 WEBEWEB
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 WBW\Bundle\BootstrapBundle\Navigation;
13
14
use WBW\Bundle\CoreBundle\Navigation\BreadcrumbNode;
15
use WBW\Bundle\CoreBundle\Navigation\NavigationInterface;
16
17
/**
18
 * FOSUser breadcrumb nodes.
19
 *
20
 * @author webeweb <https://github.com/webeweb/>
21
 * @package WBW\Bundle\BootstrapBundle\Navigation
22
 */
23
class FOSUserBreadcrumbNodes {
24
25
    /**
26
     * Get a FOSUser breadcrumb node with Glyphicon icons.
27
     *
28
     * @return BreadcrumbNode[] Returns the FOSUser breadcrumb node.
29
     */
30
    public static function getGlyphiconBreadcrumbNodes() {
31
32
        $breadcrumbNodes = [];
33
34
        $breadcrumbNodes[] = new BreadcrumbNode("label.edit_profile", "g:user", "fos_user_profile_edit", NavigationInterface::NAVIGATION_MATCHER_ROUTER);
35
        $breadcrumbNodes[] = new BreadcrumbNode("label.show_profile", "g:user", "fos_user_profile_show", NavigationInterface::NAVIGATION_MATCHER_ROUTER);
36
        $breadcrumbNodes[] = new BreadcrumbNode("label.change_password", "g:lock", "fos_user_change_password", NavigationInterface::NAVIGATION_MATCHER_ROUTER);
37
38
        return $breadcrumbNodes;
39
    }
40
}
41