public function Message::isPersonal in Drupal 10
Same name and namespace in other branches
- 8 core/modules/contact/src/Entity/Message.php \Drupal\contact\Entity\Message::isPersonal()
- 9 core/modules/contact/src/Entity/Message.php \Drupal\contact\Entity\Message::isPersonal()
Returns TRUE if this is the personal contact form.
Return value
bool TRUE if the message bundle is personal.
Overrides MessageInterface::isPersonal
1 call to Message::isPersonal()
- Message::getPersonalRecipient in core/
modules/ contact/ src/ Entity/ Message.php - Returns the user this message is being sent to.
File
- core/
modules/ contact/ src/ Entity/ Message.php, line 47
Class
- Message
- Defines the contact message entity.
Namespace
Drupal\contact\EntityCode
public function isPersonal() {
return $this
->bundle() == 'personal';
}