You are here

function private_message_node_view in Private Message 8.2

Same name and namespace in other branches
  1. 8 private_message.module \private_message_node_view()

Implements hook_ENTITY_TYPE_view().

Adds new elements to the Node entity.

See also

hook_entity_view()

File

./private_message.module, line 212
Contains hooks for the private message module.

Code

function private_message_node_view(array &$build, EntityInterface $entity, EntityViewDisplayInterface $display, $view_mode) {
  \Drupal::service('private_message.service')
    ->createRenderablePrivateMessageThreadLink($build, $entity, $display, $view_mode);
}