public function PaymentLineItemManager::__construct in Payment 8.2
Constructs a new instance.
Parameters
\Traversable $namespaces: The namespaces in which to look for plugins.
\Drupal\Core\Cache\CacheBackendInterface $cache_backend: The cache backend.
\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler.
Overrides DefaultPluginManager::__construct
File
- src/
Plugin/ Payment/ LineItem/ PaymentLineItemManager.php, line 31
Class
- PaymentLineItemManager
- Manages discovery and instantiation of payment line item plugins.
Namespace
Drupal\payment\Plugin\Payment\LineItemCode
public function __construct(\Traversable $namespaces, CacheBackendInterface $cache_backend, ModuleHandlerInterface $module_handler) {
parent::__construct('Plugin/Payment/LineItem', $namespaces, $module_handler, PaymentLineItemInterface::class, PaymentLineItem::class);
$this
->alterInfo('payment_line_item');
$this
->setCacheBackend($cache_backend, 'payment_line_item', [
'payment_line_item',
]);
}