public static function getBreadcrumbs(AbstractNavigationNode $node) {

        $breadcrumbs = [];

        if (true === ($node instanceof NavigationNode || $node instanceof BreadcrumbNode) && true === $node->getActive()) {
            $breadcrumbs[] = $node;
        }

        foreach ($node->getNodes() as $current) {
            if (false === ($current instanceof AbstractNavigationNode)) {
                continue;
            }
            $breadcrumbs = array_merge($breadcrumbs, self::getBreadcrumbs($current));
        }

        return $breadcrumbs;
    }
public static function getBreadcrumbs(AbstractNavigationNode $node) {

        $breadcrumbs = [];

        if (true === ($node instanceof NavigationNode || $node instanceof BreadcrumbNode) && true === $node->getActive()) {
            $breadcrumbs[] = $node;
        }

        foreach ($node->getNodes() as $current) {
            if (false === ($current instanceof AbstractNavigationNode)) {
                continue;
            }
            $breadcrumbs = array_merge($breadcrumbs, self::getBreadcrumbs($current));
        }

        return $breadcrumbs;
    }
public static function getBreadcrumbs ( AbstractNavigationNode $ node ) { $ breadcrumbs = [ ] ; if ( true === ( $ node instanceof NavigationNode || $ node instanceof BreadcrumbNode ) && true === $ node -> getActive ( ) ) { $ breadcrumbs [ ] = $ node ; } foreach ( $ node -> getNodes ( ) as $ current ) { if ( false === ( $ current instanceof AbstractNavigationNode ) ) { continue ; } $ breadcrumbs = array_merge ( $ breadcrumbs , self :: getBreadcrumbs ( $ current ) ) ; } return $ breadcrumbs ; }
Get the breadcrumbs.

@param AbstractNavigationNode $node The tree.
@return AsbtractNavigationNode[] Returns the breadcrumbs.
Get the breadcrumbs .