function system_authorized_get_url

Same name in other branches
  1. 7.x modules/system/system.module \system_authorized_get_url()
  2. 9 core/modules/system/system.module \system_authorized_get_url()
  3. 10 core/modules/system/system.module \system_authorized_get_url()
  4. 11.x 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

system_authorized_init()

Related topics

4 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.
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 510

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;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.