private function checkForMetaRoute($route)
    {
        $this->baseRoute = $route;
        $this->metaRoute = null;

        // If route exits in index, use it
        if ($this->mapRoute2IndexKey($route)) {
            return $route;
        }

        // Check for pagination
        $pagination = $this->config["pagination"];
        $matches = [];
        $pattern = "/(.*?)\/($pagination)\/(\d+)$/";
        if (preg_match($pattern, $route, $matches)) {
            $this->baseRoute = $matches[1];
            $this->metaRoute = $route;
            $this->currentPage = $matches[3];
        }

        return $this->baseRoute;
    }
private function checkForMetaRoute($route)
    {
        $this->baseRoute = $route;
        $this->metaRoute = null;

        // If route exits in index, use it
        if ($this->mapRoute2IndexKey($route)) {
            return $route;
        }

        // Check for pagination
        $pagination = $this->config["pagination"];
        $matches = [];
        $pattern = "/(.*?)\/($pagination)\/(\d+)$/";
        if (preg_match($pattern, $route, $matches)) {
            $this->baseRoute = $matches[1];
            $this->metaRoute = $route;
            $this->currentPage = $matches[3];
        }

        return $this->baseRoute;
    }
private function checkForMetaRoute ( $ route ) { $ this -> baseRoute = $ route ; $ this -> metaRoute = null ; // If route exits in index, use it if ( $ this -> mapRoute2IndexKey ( $ route ) ) { return $ route ; } // Check for pagination $ pagination = $ this -> config [ "pagination" ] ; $ matches = [ ] ; $ pattern = "/(.*?)\/($pagination)\/(\d+)$/" ; if ( preg_match ( $ pattern , $ route , $ matches ) ) { $ this -> baseRoute = $ matches [ 1 ] ; $ this -> metaRoute = $ route ; $ this -> currentPage = $ matches [ 3 ] ; } return $ this -> baseRoute ; }
Check if currrent route is a supported meta route.

@param string $route current route used to access page.

@return string as route.
Check if currrent route is a supported meta route .