You are here

public function PromotionReport::__construct in Commerce Reporting 8

Constructs a new PromotionReport 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 ReportTypeBase::__construct

File

src/Plugin/Commerce/ReportType/PromotionReport.php, line 46

Class

PromotionReport
Provide a report for Promotions on behalf of commerce_promotion.

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, $entity_type_manager);
  $this->promotionStorage = $entity_type_manager
    ->getStorage('commerce_promotion');
}