protected function getPageId()
    {
        $route = call_user_func($this->container->make('request')->getRouteResolver());
        if (is_null($route)) {
            return false;
        }
        $action = $route->getAction();

        $controller = isset($action['controller']) ? $action['controller'] : null;
        if (is_null($controller)) {
            return false;
        }

        $resource = $this->container->make('config')->get('antares/ui-components::pages.resource');
        if ($controller == $resource) {
            return $route->parameter('id');
        }
        return false;
    }