You are here

public function ContactForm::setRedirectPath in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/contact/src/Entity/ContactForm.php \Drupal\contact\Entity\ContactForm::setRedirectPath()

Sets the redirect path.

Parameters

string $redirect: The desired path.

Return value

$this

Overrides ContactFormInterface::setRedirectPath

File

core/modules/contact/src/Entity/ContactForm.php, line 159

Class

ContactForm
Defines the contact form entity.

Namespace

Drupal\contact\Entity

Code

public function setRedirectPath($redirect) {
  $this->redirect = $redirect;
  return $this;
}