public function ReportQueryBuilder::__construct in Commerce Reporting 8
ReportQueryBuilder constructor.
Parameters
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.
Throws
\Drupal\Component\Plugin\Exception\InvalidPluginDefinitionException
File
- src/
ReportQueryBuilder.php, line 28
Class
- ReportQueryBuilder
- Provides an aggregate query builder for order reports.
Namespace
Drupal\commerce_reportsCode
public function __construct(EntityTypeManagerInterface $entity_type_manager) {
$this->storage = $entity_type_manager
->getStorage('commerce_order_report');
}