You are here

public function PrivateMessageThreadInterface::addMember in Private Message 8

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

Add a member to the private message thread.

Parameters

\Drupal\user\AccountInterface $account: The account to be set as a member of the private message thread.

Return value

\Drupal\private_message\Entity\PrivateMessageInterface Returns the class itself to allow for chaining.

1 method overrides PrivateMessageThreadInterface::addMember()
PrivateMessageThread::addMember in src/Entity/PrivateMessageThread.php
Add a member to the private message thread.

File

src/Entity/PrivateMessageThreadInterface.php, line 24

Class

PrivateMessageThreadInterface
Provides an interface defining a Private Message thread entity.

Namespace

Drupal\private_message\Entity

Code

public function addMember(AccountInterface $account);