public function PrivateMessageThread::isMember in Private Message 8.2
Same name and namespace in other branches
- 8 src/Entity/PrivateMessageThread.php \Drupal\private_message\Entity\PrivateMessageThread::isMember()
Check if the user with the given ID is a member of the thread.
Parameters
int $id: The User ID of the user to check.
Return value
bool
- TRUE if the user is a member of the thread
- FALSE if they are not
Overrides PrivateMessageThreadInterface::isMember
File
- src/
Entity/ PrivateMessageThread.php, line 81
Class
- PrivateMessageThread
- Defines the Private Message Thread entity.
Namespace
Drupal\private_message\EntityCode
public function isMember($id) {
return in_array($id, $this
->getMembersId());
}