public function SelectPaymentMethodConfiguration::__construct in Payment 8.2
Constructs a new instance.
Parameters
\Drupal\Core\Entity\EntityAccessControlHandlerInterface $payment_method_configuration_access_control_handler:
\Drupal\payment\Plugin\Payment\MethodConfiguration\PaymentMethodConfigurationManagerInterface $payment_method_configuration_manager:
\Drupal\Core\Session\AccountInterface $current_user:
File
- src/
Controller/ SelectPaymentMethodConfiguration.php, line 39
Class
- SelectPaymentMethodConfiguration
- Handles the "select a payment method configuration to add" route.
Namespace
Drupal\payment\ControllerCode
public function __construct(EntityAccessControlHandlerInterface $payment_method_configuration_access_control_handler, PaymentMethodConfigurationManagerInterface $payment_method_configuration_manager, AccountInterface $current_user) {
$this->currentUser = $current_user;
$this->paymentMethodConfigurationAccessControlHandler = $payment_method_configuration_access_control_handler;
$this->paymentMethodConfigurationManager = $payment_method_configuration_manager;
}