class ProductAccessCheck in Ubercart 8.4
Provides an access checker for products.
Hierarchy
- class \Drupal\uc_product\Access\ProductAccessCheck implements AccessInterface
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
File
- uc_product/
src/ Access/ ProductAccessCheck.php, line 12
Namespace
Drupal\uc_product\AccessView source
class ProductAccessCheck implements AccessInterface {
/**
* {@inheritdoc}
*/
public function access(NodeInterface $node) {
return AccessResult::allowedIf(uc_product_is_product($node));
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ProductAccessCheck:: |
public | function |