You are here

public function PrivateMessageServiceInterface::createRenderablePrivateMessageThreadLink in Private Message 8.2

Add a link to send a private message to the owner of the given entity.

Parameters

array $build: A render array representing the given entity. Chances should be made to this render array.

\Drupal\Core\Entity\EntityInterface $entity: The entity being rendered.

\Drupal\Core\Entity\Display\EntityViewDisplayInterface $display: The display being used to render the entity.

string $view_mode: The view mode being used to render the entity.

1 method overrides PrivateMessageServiceInterface::createRenderablePrivateMessageThreadLink()
PrivateMessageService::createRenderablePrivateMessageThreadLink in src/Service/PrivateMessageService.php
Add a link to send a private message to the owner of the given entity.

File

src/Service/PrivateMessageServiceInterface.php, line 211

Class

PrivateMessageServiceInterface
The interface for the Private Message Service.

Namespace

Drupal\private_message\Service

Code

public function createRenderablePrivateMessageThreadLink(array &$build, EntityInterface $entity, EntityViewDisplayInterface $display, $view_mode);