You are here

public function ExternalHreflangGetCurrentUrlEvent::setCurrentUrl in External Hreflang 8

Set the current url object.

Parameters

\Drupal\Core\Url $url: URL object.

File

src/Event/ExternalHreflangGetCurrentUrlEvent.php, line 40

Class

ExternalHreflangGetCurrentUrlEvent
Class to get Current Url.

Namespace

Drupal\external_hreflang\Event

Code

public function setCurrentUrl(Url $url) {
  $url
    ->setAbsolute(FALSE);
  $this->url = $url;
}