public property Message::$recipient

The user account object of the message recipient.

Only applies to the user contact form. For a site contact form category, multiple recipients can be configured. The existence of a $recipient triggers user contact form specific processing in the contact message form controller.

@todo Replace Category::$recipients with the user account's e-mail address upon Entity::create().

Type: Drupal\user\Plugin\Core\Entity\User

See also

Drupal\contact\MessageFormController::form()

Drupal\contact\MessageFormController::save()

File

drupal/core/modules/contact/lib/Drupal/contact/Plugin/Core/Entity/Message.php, line 77
Contains Drupal\contact\Plugin\Core\Entity\Message.

Class

Message
Defines the contact message entity.

Namespace

Drupal\contact\Plugin\Core\Entity

Code

public $recipient;