You are here

public function Domain301RedirectManager::getRedirectCheckUrl in Domain 301 Redirect 8

Generate a url to the redirect check controller endpoint.

Return value

\Drupal\Core\Url The redirect check url.

Overrides Domain301RedirectManagerInterface::getRedirectCheckUrl

File

src/Domain301RedirectManager.php, line 155

Class

Domain301RedirectManager
Defines an Domain301RedirectManager service.

Namespace

Drupal\domain_301_redirect

Code

public function getRedirectCheckUrl($domain) {
  $url = Url::fromRoute('domain_301_redirect.check', [], [
    'query' => [
      'token' => $this
        ->getRedirectCheckToken(),
    ],
    'base_url' => $domain,
    'absolute' => TRUE,
  ]);
  return $url;
}