routerBuilder=$routerRedirectionBuilder; } public function getOrigin(): string { return $this->routerBuilder->getOrigin(); } public function getType(): string { return $this->routerBuilder->getType(); } public function getTargetAsString(): string { $markupPath = $this->getTargetMarkupPath(); if ($markupPath !== null){ return $markupPath->toAbsoluteId(); } $targetUrl = $this->getTargetUrl(); if($targetUrl!==null){ return $targetUrl->toAbsoluteUrlString(); } return ""; } public function getTargetUrl(): ?Web\Url { return $this->routerBuilder->getTargetUrl(); } public function getTargetMarkupPath(): ?MarkupPath { return $this->routerBuilder->getTargetMarkupPath(); } }