You are here

public function PrivateMessageMapperInterface::getThreadIdForMembers in Private Message 8

Same name and namespace in other branches
  1. 8.2 src/Mapper/PrivateMessageMapperInterface.php \Drupal\private_message\Mapper\PrivateMessageMapperInterface::getThreadIdForMembers()

Retrieve the ID of a thread from the database.

The thread returned will contain all of the given UIDs, and only the given UIDs.

Parameters

array $uids: An array of User IDs of users whose thread should be retrieved.

Return value

int|bool If a thread is found, the thread ID will be returned. Otherwise FALSE will be returned.

1 method overrides PrivateMessageMapperInterface::getThreadIdForMembers()
PrivateMessageMapper::getThreadIdForMembers in src/Mapper/PrivateMessageMapper.php
Retrieve the ID of a thread from the database.

File

src/Mapper/PrivateMessageMapperInterface.php, line 27

Class

PrivateMessageMapperInterface
Interface for the Private Message Thread mapper class.

Namespace

Drupal\private_message\Mapper

Code

public function getThreadIdForMembers(array $uids);