redirectHash) { $redirectUrl .= "#{$this->redirectHash}"; } return $redirectUrl; } /** * Returns the configured redirect hash. * * Useful to keep things DRY in case of, for example, a controller using * this request needs to redirect to the same hash in the case of successful * form submission. * * @return string|null */ public function getRedirectHash(): ?string { return $this->redirectHash; } }