You are here

public function WishlistUserForm::__construct in Commerce Wishlist 8.3

Constructs a new WishlistUserForm object.

Parameters

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The config factory.

\Drupal\commerce_cart\CartManagerInterface $cart_manager: The cart manager.

\Drupal\commerce_cart\CartProviderInterface $cart_provider: The cart provider.

\Drupal\commerce_store\CurrentStoreInterface $current_store: The current store.

\Drupal\Core\Session\AccountInterface $current_user: The current user.

\Drupal\commerce_order\Resolver\OrderTypeResolverInterface $order_type_resolver: The order type resolver.

\Drupal\Core\Routing\RouteMatchInterface $route_match: The route match.

\Drupal\commerce_price\Resolver\ChainPriceResolverInterface $chain_price_resolver: The price resolver.

\Drupal\commerce_wishlist\WishlistManagerInterface $wishlist_manager: The wishlist manager.

\Drupal\commerce_wishlist\WishlistSessionInterface $wishlist_session: The wishlist session.

File

src/Form/WishlistUserForm.php, line 133

Class

WishlistUserForm
Provides the wishlist user form.

Namespace

Drupal\commerce_wishlist\Form

Code

public function __construct(EntityTypeManagerInterface $entity_type_manager, ConfigFactoryInterface $config_factory, CartManagerInterface $cart_manager, CartProviderInterface $cart_provider, CurrentStoreInterface $current_store, AccountInterface $current_user, OrderTypeResolverInterface $order_type_resolver, RouteMatchInterface $route_match, ChainPriceResolverInterface $chain_price_resolver, WishlistManagerInterface $wishlist_manager, WishlistSessionInterface $wishlist_session) {
  $this->entityTypeManager = $entity_type_manager;
  $this->cartManager = $cart_manager;
  $this->cartProvider = $cart_provider;
  $this->currentStore = $current_store;
  $this->currentUser = $current_user;
  $this->orderTypeResolver = $order_type_resolver;
  $this->routeMatch = $route_match;
  $this->settings = $config_factory
    ->get('commerce_wishlist.settings');
  $this->chainPriceResolver = $chain_price_resolver;
  $this->wishlistManager = $wishlist_manager;
  $this->wishlistSession = $wishlist_session;
}