commerce_funds-8.x-1.7/src/WithdrawalMethodPluginManager.php
src/WithdrawalMethodPluginManager.php
<?php
namespace Drupal\commerce_funds;
use Drupal\Core\Cache\CacheBackendInterface;
use Drupal\Core\Extension\ModuleHandlerInterface;
use Drupal\Core\Plugin\DefaultPluginManager;
use Drupal\commerce_funds\Attribute\WithdrawalMethod;
/**
* Withdrawal method plugin manager.
*/
class WithdrawalMethodPluginManager extends DefaultPluginManager implements WithdrawalMethodPluginManagerInterface {
/**
* {@inheritdoc}
*/
public function __construct(\Traversable $namespaces, CacheBackendInterface $cache_backend, ModuleHandlerInterface $module_handler) {
parent::__construct('Plugin/Funds/WithdrawalMethod', $namespaces, $module_handler, 'Drupal\commerce_funds\WithdrawalMethodInterface', WithdrawalMethod::class, 'Drupal\commerce_funds\Annotation\WithdrawalMethod');
$this->alterInfo('commerce_funds_withdrawal_methods_info');
$this->setCacheBackend($cache_backend, 'commerce_funds_withdrawal_methods');
}
}
