public function Basic::__construct in Payment 8.2
Same name in this branch
- 8.2 src/Plugin/Payment/MethodConfiguration/Basic.php \Drupal\payment\Plugin\Payment\MethodConfiguration\Basic::__construct()
- 8.2 src/Plugin/Payment/Method/Basic.php \Drupal\payment\Plugin\Payment\Method\Basic::__construct()
- 8.2 src/Plugin/Payment/LineItem/Basic.php \Drupal\payment\Plugin\Payment\LineItem\Basic::__construct()
Constructs 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.
\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler.
\Drupal\payment\EventDispatcherInterface $event_dispatcher: The event dispatcher.
\Drupal\Core\Utility\Token $token: The token API.
\Drupal\payment\Plugin\Payment\Status\PaymentStatusManagerInterface: The payment status manager.
Overrides PaymentMethodBase::__construct
File
- src/
Plugin/ Payment/ Method/ Basic.php, line 67
Class
- Basic
- A basic payment method that does not transfer money.
Namespace
Drupal\payment\Plugin\Payment\MethodCode
public function __construct(array $configuration, $plugin_id, array $plugin_definition, ModuleHandlerInterface $module_handler, EventDispatcherInterface $event_dispatcher, Token $token, PaymentStatusManagerInterface $payment_status_manager) {
$configuration += $this
->defaultConfiguration();
parent::__construct($configuration, $plugin_id, $plugin_definition, $module_handler, $event_dispatcher, $token, $payment_status_manager);
}