You are here

public function PaymentMethodLabel::__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\Method\PaymentMethodManagerInterface $payment_method_manager:

Overrides HandlerBase::__construct

File

src/Plugin/views/field/PaymentMethodLabel.php, line 35

Class

PaymentMethodLabel
Renders a payment method's plugin ID as the plugin's label.

Namespace

Drupal\payment\Plugin\views\field

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, PaymentMethodManagerInterface $payment_method_manager) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->paymentMethodManager = $payment_method_manager;
}