You are here

public function TaxTypeManager::__construct in Commerce Core 8.2

Constructs a new TaxTypeManager 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: Cache backend instance to use.

\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler.

Overrides DefaultPluginManager::__construct

File

modules/tax/src/TaxTypeManager.php, line 26

Class

TaxTypeManager
Manages tax type plugins.

Namespace

Drupal\commerce_tax

Code

public function __construct(\Traversable $namespaces, CacheBackendInterface $cache_backend, ModuleHandlerInterface $module_handler) {
  parent::__construct('Plugin/Commerce/TaxType', $namespaces, $module_handler, 'Drupal\\commerce_tax\\Plugin\\Commerce\\TaxType\\TaxTypeInterface', 'Drupal\\commerce_tax\\Annotation\\CommerceTaxType');
  $this
    ->alterInfo('commerce_tax_type_info');
  $this
    ->setCacheBackend($cache_backend, 'commerce_tax_type_plugins');
}