public function OrderPaymentsForm::__construct in Ubercart 8.4
Constructs an OrderPaymentsForm object.
Parameters
\Drupal\uc_payment\Plugin\PaymentMethodManager $payment_method_manager: The payment method plugin manager.
\Drupal\Component\Datetime\TimeInterface $time: The datetime.time service.
\Drupal\Core\Datetime\DateFormatterInterface $date_formatter: The date.formatter service.
File
- payment/
uc_payment/ src/ Form/ OrderPaymentsForm.php, line 58
Class
- OrderPaymentsForm
- Displays a list of payments attached to an order.
Namespace
Drupal\uc_payment\FormCode
public function __construct(PaymentMethodManager $payment_method_manager, TimeInterface $time, DateFormatterInterface $date_formatter) {
$this->paymentMethodManager = $payment_method_manager;
$this->time = $time;
$this->dateFormatter = $date_formatter;
}