public function Message::isPersonal

Return TRUE if this is the personal contact form.

Return value

bool TRUE if the message bundle is personal.

Overrides MessageInterface::isPersonal

File

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

Class

Message
Defines the contact message entity.

Namespace

Drupal\contact\Plugin\Core\Entity

Code

public function isPersonal() {
  return $this
    ->bundle() == 'personal';
}