You are here

public function PrivateMessageThreadInterface::addMemberById in Private Message 8

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

Add a member to the private message thread.

Parameters

int $id: The ID of 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::addMemberById()
PrivateMessageThread::addMemberById in src/Entity/PrivateMessageThread.php
Add a member to the private message thread.

File

src/Entity/PrivateMessageThreadInterface.php, line 36

Class

PrivateMessageThreadInterface
Provides an interface defining a Private Message thread entity.

Namespace

Drupal\private_message\Entity

Code

public function addMemberById($id);