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()
Constructs a new instance.
Parameters
string $plugin_id: The plugin_id for the widget.
mixed[] $plugin_definition: The plugin implementation definition.
\Drupal\Core\Field\FieldDefinitionInterface $field_definition: The definition of the field to which the widget is associated.
mied[] $settings: The widget settings.
array[] $third_party_settings: Any third party settings.
\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The config factory.
\Drupal\Core\Session\AccountInterface $current_user: The current user.
\Drupal\payment_reference\PaymentFactoryInterface $payment_factory: The payment reference factory.
Overrides WidgetBase::__construct
File
- modules/
payment_reference/ src/ Plugin/ Field/ FieldWidget/ PaymentReference.php, line 71
Class
- PaymentReference
- Provides a payment reference field widget.
Namespace
Drupal\payment_reference\Plugin\Field\FieldWidgetCode
public function __construct($plugin_id, array $plugin_definition, FieldDefinitionInterface $field_definition, array $settings, array $third_party_settings, ConfigFactoryInterface $config_factory, AccountInterface $current_user, PaymentFactoryInterface $payment_factory) {
parent::__construct($plugin_id, $plugin_definition, $field_definition, $settings, $third_party_settings);
$this->configFactory = $config_factory;
$this->currentUser = $current_user;
$this->paymentFactory = $payment_factory;
}