You are here

function views_exclude_previous_node_view in Views exclude previous 8

Same name and namespace in other branches
  1. 7 views_exclude_previous.module \views_exclude_previous_node_view()

Implements hook_ENTITY_TYPE_view() for node entities.

File

./views_exclude_previous.module, line 36
Main file of the views exclude previous module.

Code

function views_exclude_previous_node_view(array &$build, EntityInterface $node, EntityViewDisplayInterface $display, $view_mode) {
  _views_exclude_previous('node_view', $node
    ->id());
}