You are here

class ProductAccessCheck in Ubercart 8.4

Provides an access checker for products.

Hierarchy

Expanded class hierarchy of ProductAccessCheck

1 string reference to 'ProductAccessCheck'
uc_product.services.yml in uc_product/uc_product.services.yml
uc_product/uc_product.services.yml
1 service uses ProductAccessCheck
access_check.uc_product in uc_product/uc_product.services.yml
Drupal\uc_product\Access\ProductAccessCheck

File

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

Namespace

Drupal\uc_product\Access
View source
class ProductAccessCheck implements AccessInterface {

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

}

Members