function system_authorized_get_url in Drupal 10
Same name and namespace in other branches
- 8 core/modules/system/system.module \system_authorized_get_url()
- 7 modules/system/system.module \system_authorized_get_url()
- 9 core/modules/system/system.module \system_authorized_get_url()
Return the URL for the authorize.php script.
Parameters
array $options: Optional array of options to set on the \Drupal\Core\Url object.
Return value
\Drupal\Core\Url The full URL to authorize.php, using HTTPS if available.
See also
Related topics
5 calls to system_authorized_get_url()
- system_authorized_batch_process in core/
modules/ system/ system.module - Use authorize.php to run batch_process().
- system_authorized_batch_processing_url in core/
modules/ system/ system.module - Returns the URL for the authorize.php script when it is processing a batch.
- system_authorized_run in core/
modules/ system/ system.module - Setup and invoke an operation using authorize.php.
- UpdateManagerInstall::submitForm in core/
modules/ update/ src/ Form/ UpdateManagerInstall.php - Form submission handler.
- UpdateReady::submitForm in core/
modules/ update/ src/ Form/ UpdateReady.php - Form submission handler.
File
- core/
modules/ system/ system.module, line 495 - Configuration system that lets administrators modify the workings of the site.
Code
function system_authorized_get_url(array $options = []) {
// core/authorize.php is an unrouted URL, so using the base: scheme is
// the correct usage for this case.
$url = Url::fromUri('base:core/authorize.php');
$url_options = $url
->getOptions();
$url
->setOptions($options + $url_options);
return $url;
}