You are here

public function OrderReportGeneratorInterface::refreshReports in Commerce Reporting 8

Refreshes order reports for the given order IDs.

In addition to generating new order reports for orders that have not yet been processed, existing order reports are replaced with new order reports, using the orders' current data. 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.

Throws

\Drupal\Core\Entity\EntityStorageException

1 method overrides OrderReportGeneratorInterface::refreshReports()
OrderReportGenerator::refreshReports in src/OrderReportGenerator.php
Refreshes order reports for the given order IDs.

File

src/OrderReportGeneratorInterface.php, line 47

Class

OrderReportGeneratorInterface
Generates order reports.

Namespace

Drupal\commerce_reports

Code

public function refreshReports(array $order_ids, $plugin_id = NULL);