system_authorized_get_url example


    }

    // Otherwise, go through the regular workflow to prompt for FTP/SSH     // credentials and invoke update_authorize_run_install() indirectly with     // whatever FileTransfer object authorize.php creates for us.     else {
      // The page title must be passed here to ensure it is initially used when       // authorize.php loads for the first time with the FTP/SSH credentials       // form.       system_authorized_init('update_authorize_run_install', __DIR__ . '/../../update.authorize.inc', $arguments$this->t('Update manager'));
      $form_state->setRedirectUrl(system_authorized_get_url());
    }
  }

}
$form_state->setResponse($response);
        }
      }
      // Otherwise, go through the regular workflow to prompt for FTP/SSH       // credentials and invoke update_authorize_run_update() indirectly with       // whatever FileTransfer object authorize.php creates for us.       else {
        // The page title must be passed here to ensure it is initially used         // when authorize.php loads for the first time with the FTP/SSH         // credentials form.         system_authorized_init('update_authorize_run_update', __DIR__ . '/../../update.authorize.inc', [$updates]$this->t('Update manager'));
        $form_state->setRedirectUrl(system_authorized_get_url());
      }
    }
  }

}
Home | Imprint | This part of the site doesn't use cookies.