public function PaymentMethodTypeManager::__construct in Commerce Core 8.2
Constructs a new PaymentMethodTypeManager object.
Parameters
\Traversable $namespaces: An object that implements \Traversable which contains the root paths keyed by the corresponding namespace to look for plugin implementations.
\Drupal\Core\Cache\CacheBackendInterface $cache_backend: The cache backend.
\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler.
Overrides DefaultPluginManager::__construct
File
- modules/
payment/ src/ PaymentMethodTypeManager.php, line 29
Class
- PaymentMethodTypeManager
- Manages discovery and instantiation of payment method type plugins.
Namespace
Drupal\commerce_paymentCode
public function __construct(\Traversable $namespaces, CacheBackendInterface $cache_backend, ModuleHandlerInterface $module_handler) {
parent::__construct('Plugin/Commerce/PaymentMethodType', $namespaces, $module_handler, 'Drupal\\commerce_payment\\Plugin\\Commerce\\PaymentMethodType\\PaymentMethodTypeInterface', 'Drupal\\commerce_payment\\Annotation\\CommercePaymentMethodType');
$this
->alterInfo('commerce_payment_method_type_info');
$this
->setCacheBackend($cache_backend, 'commerce_payment_method_type_plugins');
}