public function PaymentTypeLabel::__construct in Payment 8.2
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\payment\Plugin\Payment\Type\PaymentTypeManagerInterface $payment_type_manager:
Overrides HandlerBase::__construct
File
- src/
Plugin/ views/ field/ PaymentTypeLabel.php, line 35
Class
- PaymentTypeLabel
- Renders a payment type's plugin ID as the plugin's label.
Namespace
Drupal\payment\Plugin\views\fieldCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, PaymentTypeManagerInterface $payment_type_manager) {
parent::__construct($configuration, $plugin_id, $plugin_definition);
$this->paymentTypeManager = $payment_type_manager;
}