You are here

public function OrderReport::getOrder in Commerce Reporting 8

Gets the order.

Return value

\Drupal\commerce_order\Entity\OrderInterface The order entity.

Overrides OrderReportInterface::getOrder

File

src/Entity/OrderReport.php, line 62

Class

OrderReport
Defines the order report entity class.

Namespace

Drupal\commerce_reports\Entity

Code

public function getOrder() {
  return $this
    ->get('order_id')->entity;
}