public function OrderReportGeneratorInterface::generateReports in Commerce Reporting 8
Generates order reports for the given order IDs.
New order reports are created for all orders that have been placed, regardless of whether order reports already exist for the orders. Specify a report type plugin id to generate reports for a single report type; otherwise, reports for all types will be generated.
Parameters
array $order_ids: An array of order IDs.
string $plugin_id: (optional) The report type plugin id to be used to generate reports.
Return value
int The number of orders for which reports were generated.
1 method overrides OrderReportGeneratorInterface::generateReports()
- OrderReportGenerator::generateReports in src/
OrderReportGenerator.php - Generates order reports for the given order IDs.
File
- src/
OrderReportGeneratorInterface.php, line 26
Class
- OrderReportGeneratorInterface
- Generates order reports.
Namespace
Drupal\commerce_reportsCode
public function generateReports(array $order_ids, $plugin_id = NULL);