You are here

public function PrivateMessageThread::getMembers in Private Message 8

Same name and namespace in other branches
  1. 8.2 src/Entity/PrivateMessageThread.php \Drupal\private_message\Entity\PrivateMessageThread::getMembers()

Retrieve the members of the private message thread.

Overrides PrivateMessageThreadInterface::getMembers

2 calls to PrivateMessageThread::getMembers()
PrivateMessageThread::clearCacheTags in src/Entity/PrivateMessageThread.php
Clear cache tags related to private message thread entities.
PrivateMessageThread::isMember in src/Entity/PrivateMessageThread.php
Check if the user with the given ID is a member of the thread.

File

src/Entity/PrivateMessageThread.php, line 65

Class

PrivateMessageThread
Defines the Private Message Thread entity.

Namespace

Drupal\private_message\Entity

Code

public function getMembers() {
  return $this
    ->get('members')
    ->referencedEntities();
}