public function CartApiAccessCheck::__construct in Commerce Cart API 8
Constructs a new CartApiAccessCheck object.
Parameters
\Drupal\commerce_cart\CartProviderInterface $cart_provider: The cart provider.
File
- src/
Access/ CartApiAccessCheck.php, line 35
Class
- CartApiAccessCheck
- Access check for the cart rest plugins.
Namespace
Drupal\commerce_cart_api\AccessCode
public function __construct(CartProviderInterface $cart_provider) {
$this->cartProvider = $cart_provider;
}