public function breadcrumbs($route, $parsedRoute)
    {
        if (isset($parsedRoute['action'])) {
            switch ($parsedRoute['action']) {
                case 'index':
                    return $this->breadcrumbsIndex($route, $parsedRoute);
            }
        }
        return null;
    }
public function breadcrumbs($route, $parsedRoute)
    {
        if (isset($parsedRoute['action'])) {
            switch ($parsedRoute['action']) {
                case 'index':
                    return $this->breadcrumbsIndex($route, $parsedRoute);
            }
        }
        return null;
    }
public function breadcrumbs ( $ route , $ parsedRoute ) { if ( isset ( $ parsedRoute [ 'action' ] ) ) { switch ( $ parsedRoute [ 'action' ] ) { case 'index' : return $ this -> breadcrumbsIndex ( $ route , $ parsedRoute ) ; } } return null ; }
Builds breadcrumbs for a particular route.
@param string $route - The route URL
@param array $parsedRoute - The parsed URL (@see parse_url), augmented with extension, controller and action
@return array|null - The breadcrumb related to the route, or `null` if none. Must contains:
- id: the route id
- url: the route url
- label: the label displayed for the breadcrumb
- entries: a list of related links, using the same format as above
Builds breadcrumbs for a particular route .