public function load()
    {
        $data = [];
        $routes = $this->getRoutes();
        foreach($routes as $route) {
            $parsedRoute = $this->parseRoute($route);
            $routeData = $this->requestService($route, $parsedRoute);

            if ($routeData !== null) {
                // When the routeData contains more entry. (if it's a numeric array)
                if (array_values($routeData) === $routeData) {
                    $data = array_merge($data, $routeData);
                }
                else {
                    $data[] = $routeData;
                }
            }
        }
        $this->returnData($data);
    }
public function load()
    {
        $data = [];
        $routes = $this->getRoutes();
        foreach($routes as $route) {
            $parsedRoute = $this->parseRoute($route);
            $routeData = $this->requestService($route, $parsedRoute);

            if ($routeData !== null) {
                // When the routeData contains more entry. (if it's a numeric array)
                if (array_values($routeData) === $routeData) {
                    $data = array_merge($data, $routeData);
                }
                else {
                    $data[] = $routeData;
                }
            }
        }
        $this->returnData($data);
    }
public function load ( ) { $ data = [ ] ; $ routes = $ this -> getRoutes ( ) ; foreach ( $ routes as $ route ) { $ parsedRoute = $ this -> parseRoute ( $ route ) ; $ routeData = $ this -> requestService ( $ route , $ parsedRoute ) ; if ( $ routeData !== null ) { // When the routeData contains more entry. (if it's a numeric array) if ( array_values ( $ routeData ) === $ routeData ) { $ data = array_merge ( $ data , $ routeData ) ; } else { $ data [ ] = $ routeData ; } } } $ this -> returnData ( $ data ) ; }
Loads all the breadcrumbs for a particular context route
Loads all the breadcrumbs for a particular context route