public function PaymentReference::__construct in Payment 8.2
Same name in this branch
- 8.2 modules/payment_reference/src/Element/PaymentReference.php \Drupal\payment_reference\Element\PaymentReference::__construct()
- 8.2 modules/payment_reference/src/Plugin/Payment/Type/PaymentReference.php \Drupal\payment_reference\Plugin\Payment\Type\PaymentReference::__construct()
- 8.2 modules/payment_reference/src/Plugin/Field/FieldWidget/PaymentReference.php \Drupal\payment_reference\Plugin\Field\FieldWidget\PaymentReference::__construct()
Creates a new instance.
Parameters
mixed[] $configuration: A configuration array containing information about the plugin instance.
string $plugin_id: The plugin_id for the plugin instance.
mixed $plugin_definition: The plugin implementation definition.
\Symfony\Component\HttpFoundation\RequestStack $request_stack:
\Drupal\Core\Entity\EntityStorageInterface $payment_storage:
\Drupal\Core\StringTranslation\TranslationInterface $string_translation:
\Drupal\Core\Datetime\DateFormatter $date_formatter:
\Drupal\Core\Utility\LinkGeneratorInterface $link_generator:
\Drupal\Core\Render\RendererInterface $renderer:
\Drupal\Core\Session\AccountInterface $current_user:
\Drupal\plugin\Plugin\Plugin\PluginSelector\PluginSelectorManagerInterface $plugin_selector_manager:
\Drupal\plugin\PluginType\PluginTypeInterface $payment_method_type:
\Drupal\payment\QueueInterface $payment_queue:
Overrides PaymentReferenceBase::__construct
File
- modules/
payment_reference/ src/ Element/ PaymentReference.php, line 53
Class
- PaymentReference
- Provides a payment reference element.
Namespace
Drupal\payment_reference\ElementCode
public function __construct($configuration, $plugin_id, $plugin_definition, RequestStack $request_stack, EntityStorageInterface $payment_storage, TranslationInterface $string_translation, DateFormatter $date_formatter, LinkGeneratorInterface $link_generator, RendererInterface $renderer, AccountInterface $current_user, PluginSelectorManagerInterface $plugin_selector_manager, PluginTypeInterface $payment_method_type, Random $random, QueueInterface $payment_queue) {
parent::__construct($configuration, $plugin_id, $plugin_definition, $request_stack, $payment_storage, $string_translation, $date_formatter, $link_generator, $renderer, $current_user, $plugin_selector_manager, $payment_method_type, $random);
$this->paymentQueue = $payment_queue;
}