protected function FieldRedirectionResult::getRedirectUrl in Field Redirection 8.2
Gets redirect URL.
Return value
\Drupal\Core\Url The url object.
File
- src/
FieldRedirectionResult.php, line 71
Class
- FieldRedirectionResult
- Defines a value object for a field redirection result.
Namespace
Drupal\field_redirectionCode
protected function getRedirectUrl() {
if (!$this
->shouldRedirect()) {
throw new \LogicException("There is no redirect URL for a redirect result that doesn't redirect");
}
return $this->redirectUrl;
}