You are here

public function ReportTypeInterface::createFromOrder in Commerce Reporting 8

Creates a new order report using the given order and values.

Parameters

\Drupal\commerce_order\Entity\OrderInterface $order: The order.

array $values: (optional) An array of values to set, keyed by property name.

1 method overrides ReportTypeInterface::createFromOrder()
ReportTypeBase::createFromOrder in src/Plugin/Commerce/ReportType/ReportTypeBase.php
Creates a new order report using the given order and values.

File

src/Plugin/Commerce/ReportType/ReportTypeInterface.php, line 68

Class

ReportTypeInterface
Defines the interface for order report types.

Namespace

Drupal\commerce_reports\Plugin\Commerce\ReportType

Code

public function createFromOrder(OrderInterface $order, array $values = []);