You are here

public function CartLinksForm::__construct in Ubercart 8.4

Form constructor.

Parameters

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

\Drupal\uc_cart_links\CartLinksValidatorInterface $cart_links_validator: The uc_cart_links.validator service.

\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler.

\Symfony\Component\HttpFoundation\Session\SessionInterface $session: The session.

\Drupal\Component\Datetime\TimeInterface $date_time: The datetime.time service.

\Drupal\Core\Database\Connection $database: A database connection.

File

uc_cart_links/src/Form/CartLinksForm.php, line 89

Class

CartLinksForm
Preprocesses a cart link, confirming with the user for destructive actions.

Namespace

Drupal\uc_cart_links\Form

Code

public function __construct(CartManagerInterface $cart_manager, CartLinksValidatorInterface $cart_links_validator, ModuleHandlerInterface $module_handler, SessionInterface $session, TimeInterface $date_time, Connection $database) {
  $this->cartManager = $cart_manager;
  $this->cartLinksValidator = $cart_links_validator;
  $this->moduleHandler = $module_handler;
  $this->session = $session;
  $this->dateTime = $date_time;
  $this->database = $database;
}