public function ReportTypeInterface::buildQuery in Commerce Reporting 8
Builds the aggregate query.
Report type plugins should add their field columns, aggregates, and groupBy statements here.
Parameters
\Drupal\Core\Entity\Query\QueryAggregateInterface $query: The aggregate query.
4 methods override ReportTypeInterface::buildQuery()
- OrderItemsReport::buildQuery in src/
Plugin/ Commerce/ ReportType/ OrderItemsReport.php - Builds the aggregate query.
- OrderReport::buildQuery in src/
Plugin/ Commerce/ ReportType/ OrderReport.php - Builds the aggregate query.
- PromotionReport::buildQuery in src/
Plugin/ Commerce/ ReportType/ PromotionReport.php - Builds the aggregate query.
- TaxReport::buildQuery in src/
Plugin/ Commerce/ ReportType/ TaxReport.php - Builds the aggregate query.
File
- src/
Plugin/ Commerce/ ReportType/ ReportTypeInterface.php, line 39
Class
- ReportTypeInterface
- Defines the interface for order report types.
Namespace
Drupal\commerce_reports\Plugin\Commerce\ReportTypeCode
public function buildQuery(QueryAggregateInterface $query);