You are here

public function ContactForm::setRecipients in Drupal 10

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

Sets list of recipient email addresses.

Parameters

array $recipients: The desired list of email addresses of this category.

Return value

$this

Overrides ContactFormInterface::setRecipients

File

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

Class

ContactForm
Defines the contact form entity.

Namespace

Drupal\contact\Entity

Code

public function setRecipients($recipients) {
  $this->recipients = $recipients;
  return $this;
}