function ContactFormInterface::setRedirectPath

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

Sets the redirect path.

Parameters

string $redirect: The desired path.

Return value

$this

1 method overrides ContactFormInterface::setRedirectPath()
ContactForm::setRedirectPath in core/modules/contact/src/Entity/ContactForm.php
Sets the redirect path.

File

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

Class

ContactFormInterface
Provides an interface defining a contact form entity.

Namespace

Drupal\contact

Code

public function setRedirectPath($redirect);

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