public function AddPaymentMethodConfiguration::__construct in Payment 8.2
Constructs a new instance.
Parameters
\Symfony\Component\HttpFoundation\RequestStack $request_stack:
\Drupal\Core\StringTranslation\TranslationInterface $string_translation: The string translator.
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager:
\Drupal\payment\Plugin\Payment\MethodConfiguration\PaymentMethodConfigurationManagerInterface $payment_method_configuration_manager:
\Drupal\Core\Entity\EntityFormBuilderInterface $entity_form_builder:
\Drupal\Core\Session\AccountInterface $current_user:
File
- src/
Controller/ AddPaymentMethodConfiguration.php, line 44
Class
- AddPaymentMethodConfiguration
- Handles the "add payment method configuration" route.
Namespace
Drupal\payment\ControllerCode
public function __construct(RequestStack $request_stack, TranslationInterface $string_translation, EntityTypeManagerInterface $entity_type_manager, PaymentMethodConfigurationManagerInterface $payment_method_configuration_manager, EntityFormBuilderInterface $entity_form_builder, AccountInterface $current_user) {
$this->currentUser = $current_user;
$this->entityTypeManager = $entity_type_manager;
$this->entityFormBuilder = $entity_form_builder;
$this->paymentMethodConfigurationManager = $payment_method_configuration_manager;
$this->requestStack = $request_stack;
$this->stringTranslation = $string_translation;
}