You are here

public function AdjustmentTypeManager::__construct in Commerce Core 8.2

Constructs a new AdjustmentTypeManager object.

Parameters

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

\Drupal\Core\Cache\CacheBackendInterface $cache_backend: The cache backend.

Overrides DefaultPluginManager::__construct

File

modules/order/src/AdjustmentTypeManager.php, line 47

Class

AdjustmentTypeManager
Manages discovery and instantiation of commerce_adjustment_type plugins.

Namespace

Drupal\commerce_order

Code

public function __construct(ModuleHandlerInterface $module_handler, CacheBackendInterface $cache_backend) {
  $this->moduleHandler = $module_handler;
  $this
    ->setCacheBackend($cache_backend, 'commerce_adjustment_type', [
    'commerce_adjustment_type',
  ]);
  $this
    ->alterInfo('commerce_adjustment_type_info');
}