You are here

service commerce_add_to_cart_link.token in Commerce Add To Cart Link 2.x

Same name and namespace in other branches
  1. 8 commerce_add_to_cart_link.services.yml \commerce_add_to_cart_link.token

Class

Drupal\commerce_add_to_cart_link\CartLinkToken
5 string references to commerce_add_to_cart_link.token
AddToCartController::create in src/Controller/AddToCartController.php
Instantiates a new instance of this class.
AddToCartLink::url in src/AddToCartLink.php
Generate an URL object for an add-to-cart link.
AddToWishlistController::create in modules/wishlist/src/Controller/AddToWishlistController.php
Instantiates a new instance of this class.
AddToWishlistLink::url in modules/wishlist/src/AddToWishlistLink.php
Generate an URL object for an add-to-wishlist link.
commerce_add_to_wishlist_link_commerce_product_view in modules/wishlist/commerce_add_to_wishlist_link.module
Implements hook_ENTITY_TYPE_view() for commerce_product.

File

./commerce_add_to_cart_link.services.yml
commerce_add_to_cart_link.services.yml

View source
  1. class: Drupal\commerce_add_to_cart_link\CartLinkToken
  2. arguments:
  3. - '@current_user'
  4. - '@config.factory'
  5. - '@private_key'