You are here

private function RedirectDestination::getParentDestination in Bakery Single Sign-On System 8.2

Get link to destination on current site for parent.

Return value

\Drupal\Core\Url

1 call to RedirectDestination::getParentDestination()
RedirectDestination::get in src/RedirectDestination.php
Gets the destination as a path.

File

src/RedirectDestination.php, line 97

Class

RedirectDestination

Namespace

Drupal\bakery

Code

private function getParentDestination() {
  $query = $this->requestStack
    ->getCurrentRequest()->query;
  if ($query
    ->has('bd')) {

    // @TODO do something?
  }
  return Url::fromRoute('<current>')
    ->setAbsolute(TRUE);
}