You are here

public function PaymentLineItemManagerInterface::createInstance in Payment 8.2

Creates a payment line item.

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\LineItem\PaymentLineItemInterface

Overrides FactoryInterface::createInstance

File

src/Plugin/Payment/LineItem/PaymentLineItemManagerInterface.php, line 22

Class

PaymentLineItemManagerInterface
Defines a payment line item manager.

Namespace

Drupal\payment\Plugin\Payment\LineItem

Code

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