public function PaymentMethodConfigurationOperationsProvider::__construct in Payment 8.2
Constructs a new instance.
Parameters
\Drupal\Core\StringTranslation\TranslationInterface $string_translation: The string translator.
\Drupal\Core\Routing\RedirectDestinationInterface $redirect_destination: The redirect destination.
\Drupal\Core\Entity\EntityStorageInterface $payment_method_configuration_storage: The payment method configuration storage.
\Drupal\Core\Entity\EntityListBuilderInterface $payment_method_configuration_list_builder: The payment method configuration list builder.
File
- src/
Plugin/ Payment/ Method/ PaymentMethodConfigurationOperationsProvider.php, line 58
Class
- PaymentMethodConfigurationOperationsProvider
- Provides operations for payment methods based on config entities.
Namespace
Drupal\payment\Plugin\Payment\MethodCode
public function __construct(TranslationInterface $string_translation, RedirectDestinationInterface $redirect_destination, EntityStorageInterface $payment_method_configuration_storage, EntityListBuilderInterface $payment_method_configuration_list_builder) {
$this->paymentMethodConfigurationListBuilder = $payment_method_configuration_list_builder;
$this->paymentMethodConfigurationStorage = $payment_method_configuration_storage;
$this->redirectDestination = $redirect_destination;
$this->stringTranslation = $string_translation;
}