public function TaxReport::__construct in Commerce Reporting 8
Constructs a new TaxReport 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/ TaxReport.php, line 47
Class
- TaxReport
- Provide a report for Taxes on behalf of commerce_tax.
Namespace
Drupal\commerce_reports\Plugin\Commerce\ReportTypeCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, EntityTypeManagerInterface $entity_type_manager) {
parent::__construct($configuration, $plugin_id, $plugin_definition, $entity_type_manager);
$this->taxTypeStorage = $entity_type_manager
->getStorage('commerce_tax_type');
}