public Message::isPersonal()
Returns TRUE if this is the personal contact form.
Return value
bool TRUE if the message bundle is personal.
Overrides MessageInterface::isPersonal
File
- core/modules/contact/src/Entity/Message.php, line 39
Class
- Message
- Defines the contact message entity.
Namespace
Drupal\contact\Entity
Code
public function isPersonal() { return $this->bundle() == 'personal'; }
Please login to continue.