function ContactFormInterface::getRedirectUrl

Same name and namespace in other branches
  1. 9 core/modules/contact/src/ContactFormInterface.php \Drupal\contact\ContactFormInterface::getRedirectUrl()
  2. 8.9.x core/modules/contact/src/ContactFormInterface.php \Drupal\contact\ContactFormInterface::getRedirectUrl()
  3. 10 core/modules/contact/src/ContactFormInterface.php \Drupal\contact\ContactFormInterface::getRedirectUrl()

Returns the \Drupal\Core\Url object for redirect path.

Empty redirect property results a \Drupal\Core\Url object of front page.

Return value

\Drupal\Core\Url The redirect \Drupal\Core\Url object.

1 method overrides ContactFormInterface::getRedirectUrl()
ContactForm::getRedirectUrl in core/modules/contact/src/Entity/ContactForm.php
Returns the \Drupal\Core\Url object for redirect path.

File

core/modules/contact/src/ContactFormInterface.php, line 44

Class

ContactFormInterface
Provides an interface defining a contact form entity.

Namespace

Drupal\contact

Code

public function getRedirectUrl();

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.