You are here

public function ReportTypeManager::__construct in Commerce Reporting 8

Constructs a new OrderReportTypeManager 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

src/ReportTypeManager.php, line 29

Class

ReportTypeManager
Manages discovery and instantiation of payment method type plugins.

Namespace

Drupal\commerce_reports

Code

public function __construct(\Traversable $namespaces, CacheBackendInterface $cache_backend, ModuleHandlerInterface $module_handler) {
  parent::__construct('Plugin/Commerce/ReportType', $namespaces, $module_handler, 'Drupal\\commerce_reports\\Plugin\\Commerce\\ReportType\\ReportTypeInterface', 'Drupal\\commerce_reports\\Annotation\\CommerceReportType');
  $this
    ->alterInfo('commerce_report_type_info');
  $this
    ->setCacheBackend($cache_backend, 'commerce_report_type_plugins');
}