public function PaymentMethodManagerInterface::createInstance in Payment 8.2
Creates a payment method.
Parameters
string $plugin_id: The id of the plugin being instantiated.
mixed[] $configuration: An array of configuration relevant to the plugin instance.
Return value
\Drupal\payment\Plugin\Payment\Method\PaymentMethodInterface
Overrides FactoryInterface::createInstance
File
- src/
Plugin/ Payment/ Method/ PaymentMethodManagerInterface.php, line 23
Class
- PaymentMethodManagerInterface
- Defines a payment method manager.
Namespace
Drupal\payment\Plugin\Payment\MethodCode
public function createInstance($plugin_id, array $configuration = []);