Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Message.php

function Message::isPersonal

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 50

Class

Message
Defines the contact message entity.

Namespace

Drupal\contact\Entity

Code

public function isPersonal() {
    return $this->bundle() == 'personal';
}
RSS feed
Powered by Drupal