You are here

public function ContactFormInterface::setRecipients in Drupal 9

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

Sets list of recipient email addresses.

Parameters

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

Return value

$this

1 method overrides ContactFormInterface::setRecipients()
ContactForm::setRecipients in core/modules/contact/src/Entity/ContactForm.php
Sets list of recipient email addresses.

File

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

Class

ContactFormInterface
Provides an interface defining a contact form entity.

Namespace

Drupal\contact

Code

public function setRecipients($recipients);