You are here

public function PrivateMessageThreadInterface::addMessage in Private Message 8

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

Add a private message to the list of messages in this thread.

Parameters

Drupal\private_message\Entity\PrivateMessageInterface $privateMessage: The private message to be added to the thread.

Return value

Drupal\private_message\Entity\PrivateMessageThread The private message thread.

1 method overrides PrivateMessageThreadInterface::addMessage()
PrivateMessageThread::addMessage in src/Entity/PrivateMessageThread.php
Add a private message to the list of messages in this thread.

File

src/Entity/PrivateMessageThreadInterface.php, line 64

Class

PrivateMessageThreadInterface
Provides an interface defining a Private Message thread entity.

Namespace

Drupal\private_message\Entity

Code

public function addMessage(PrivateMessageInterface $privateMessage);