You are here

public function PaymentTypeManagerInterface::createInstance in Payment 8.2

Creates a payment type.

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\Type\PaymentTypeInterface

Overrides FactoryInterface::createInstance

File

src/Plugin/Payment/Type/PaymentTypeManagerInterface.php, line 23

Class

PaymentTypeManagerInterface
Defines a payment type manager.

Namespace

Drupal\payment\Plugin\Payment\Type

Code

public function createInstance($plugin_id, array $configuration = []);