You are here

public function ReportTypeBase::__construct in Commerce Reporting 8

Constructs a new ReportTypeBase object.

Parameters

array $configuration: The plugin configuration, i.e. an array with configuration values keyed by configuration option name.

string $plugin_id: The plugin_id for the plugin instance.

mixed $plugin_definition: The plugin implementation definition.

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.

Overrides PluginBase::__construct

2 calls to ReportTypeBase::__construct()
PromotionReport::__construct in src/Plugin/Commerce/ReportType/PromotionReport.php
Constructs a new PromotionReport object.
TaxReport::__construct in src/Plugin/Commerce/ReportType/TaxReport.php
Constructs a new TaxReport object.
2 methods override ReportTypeBase::__construct()
PromotionReport::__construct in src/Plugin/Commerce/ReportType/PromotionReport.php
Constructs a new PromotionReport object.
TaxReport::__construct in src/Plugin/Commerce/ReportType/TaxReport.php
Constructs a new TaxReport object.

File

src/Plugin/Commerce/ReportType/ReportTypeBase.php, line 36

Class

ReportTypeBase
Provides the base order report type class.

Namespace

Drupal\commerce_reports\Plugin\Commerce\ReportType

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, EntityTypeManagerInterface $entity_type_manager) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->orderReportStorage = $entity_type_manager
    ->getStorage('commerce_order_report');
}