You are here

public static function PaymentMethodConfigurationBase::create in Payment 8.2

1 method overrides PaymentMethodConfigurationBase::create()
Basic::create in src/Plugin/Payment/MethodConfiguration/Basic.php
Creates an instance of the plugin.

File

src/Plugin/Payment/MethodConfiguration/PaymentMethodConfigurationBase.php, line 55

Class

PaymentMethodConfigurationBase
Provides a base payment method configuration plugin.

Namespace

Drupal\payment\Plugin\Payment\MethodConfiguration

Code

public static function create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition) {
  return new static($configuration, $plugin_id, $plugin_definition, $container
    ->get('string_translation'), $container
    ->get('module_handler'));
}