You are here

function uc_product_node_view in Ubercart 8.4

Implements hook_node_view().

File

uc_product/uc_product.module, line 261
The product module for Ubercart.

Code

function uc_product_node_view(array &$build, NodeInterface $node, EntityViewDisplayInterface $display, $view_mode) {
  if (!uc_product_is_product($node)) {
    return;
  }
  uc_product_view_product($build, $node, $display, $view_mode);
}