Devise\Pages\PageController::retrieveLocalRedirect PHP Method

retrieveLocalRedirect() public method

This retrieves the a redirect for the user's language
public retrieveLocalRedirect ( DvsPage $localized )
$localized DvsPage
    public function retrieveLocalRedirect($localized)
    {
        $route = $this->Route->getCurrentRoute();
        $params = $route ? $route->parameters() : [];
        return $this->Redirect->route($localized->route_name, $params);
    }