You are here

public function ProductAccessCheck::access in Ubercart 8.4

File

uc_product/src/Access/ProductAccessCheck.php, line 17

Class

ProductAccessCheck
Provides an access checker for products.

Namespace

Drupal\uc_product\Access

Code

public function access(NodeInterface $node) {
  return AccessResult::allowedIf(uc_product_is_product($node));
}