Elgg\Application::allowPathRewrite PHP Method

allowPathRewrite() private method

Allow plugins to rewrite the path.
private allowPathRewrite ( ) : void
return void
    private function allowPathRewrite()
    {
        $request = $this->services->request;
        $new = $this->services->router->allowRewrite($request);
        if ($new === $request) {
            return;
        }
        $this->services->setValue('request', $new);
        _elgg_set_initial_context($new);
    }