public function Message::isPersonal in Zircon Profile 8
Same name and namespace in other branches
- 8.0 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 44 - Contains \Drupal\contact\Entity\Message.
Class
- Message
- Defines the contact message entity.
Namespace
Drupal\contact\EntityCode
public function isPersonal() {
return $this
->bundle() == 'personal';
}