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

getGlyphiconBreadcrumbNodes()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 10

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 10
rs 9.9332
c 0
b 0
f 0
cc 1
nc 1
nop 0
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