public function PadoAddToCartForm::__construct in Commerce Product Add-on 8
Constructs a new AddToCartForm object.
Parameters
\Drupal\Core\Entity\EntityRepositoryInterface $entity_repository: The entity repository.
\Drupal\Core\Entity\EntityTypeBundleInfoInterface $entity_type_bundle_info: The entity type bundle info.
\Drupal\Component\Datetime\TimeInterface $time: The time.
\Drupal\commerce_cart\CartManagerInterface $cart_manager: The cart manager.
\Drupal\commerce_cart\CartProviderInterface $cart_provider: The cart provider.
\Drupal\commerce_order\Resolver\OrderTypeResolverInterface $order_type_resolver: The order type resolver.
\Drupal\commerce_store\CurrentStoreInterface $current_store: The current store.
\Drupal\commerce_price\Resolver\ChainPriceResolverInterface $chain_price_resolver: The chain base price resolver.
\Drupal\Core\Session\AccountInterface $current_user: The current user.
Overrides AddToCartForm::__construct
File
- src/
Form/ PadoAddToCartForm.php, line 34
Class
- PadoAddToCartForm
- Provides the order item add to cart form.
Namespace
Drupal\commerce_pado\FormCode
public function __construct(EntityRepositoryInterface $entity_repository, EntityTypeBundleInfoInterface $entity_type_bundle_info, TimeInterface $time, CartManagerInterface $cart_manager, CartProviderInterface $cart_provider, OrderTypeResolverInterface $order_type_resolver, CurrentStoreInterface $current_store, ChainPriceResolverInterface $chain_price_resolver, AccountInterface $current_user, RendererInterface $renderer) {
parent::__construct($entity_repository, $entity_type_bundle_info, $time, $cart_manager, $cart_provider, $order_type_resolver, $current_store, $chain_price_resolver, $current_user);
$this->renderer = $renderer;
}