function MessageInterface::getPersonalRecipient
Same name in other branches
- 9 core/modules/contact/src/MessageInterface.php \Drupal\contact\MessageInterface::getPersonalRecipient()
- 10 core/modules/contact/src/MessageInterface.php \Drupal\contact\MessageInterface::getPersonalRecipient()
- 11.x core/modules/contact/src/MessageInterface.php \Drupal\contact\MessageInterface::getPersonalRecipient()
Returns the user this message is being sent to.
Return value
\Drupal\user\UserInterface The user entity of the recipient, NULL if this is not a personal message.
1 method overrides MessageInterface::getPersonalRecipient()
- Message::getPersonalRecipient in core/
modules/ contact/ src/ Entity/ Message.php - Returns the user this message is being sent to.
File
-
core/
modules/ contact/ src/ MessageInterface.php, line 114
Class
- MessageInterface
- Provides an interface defining a contact message entity.
Namespace
Drupal\contactCode
public function getPersonalRecipient();
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.