public function CheckoutCompletionRegisterEvent::setRedirectUrl in Commerce Core 8.2
Sets the redirect URL.
Parameters
\Drupal\Core\Url $url: The redirect URL.
Return value
$this
1 call to CheckoutCompletionRegisterEvent::setRedirectUrl()
- CheckoutCompletionRegisterEvent::setRedirect in modules/
checkout/ src/ Event/ CheckoutCompletionRegisterEvent.php - Sets the redirect.
File
- modules/
checkout/ src/ Event/ CheckoutCompletionRegisterEvent.php, line 91
Class
- CheckoutCompletionRegisterEvent
- Defines the checkout completion register event.
Namespace
Drupal\commerce_checkout\EventCode
public function setRedirectUrl(Url $url) {
$this->redirect = $url;
return $this;
}