function private_message_comment_view in Private Message 8.2
Same name and namespace in other branches
- 8 private_message.module \private_message_comment_view()
Implements hook_ENTITY_TYPE_view().
Adds new elements to the Comment entity.
See also
File
- ./
private_message.module, line 223 - Contains hooks for the private message module.
Code
function private_message_comment_view(array &$build, EntityInterface $entity, EntityViewDisplayInterface $display, $view_mode) {
\Drupal::service('private_message.service')
->createRenderablePrivateMessageThreadLink($build, $entity, $display, $view_mode);
}