You are here

public function OrderReport::getOrderId in Commerce Reporting 8

Gets the order ID.

Return value

int The order ID.

Overrides OrderReportInterface::getOrderId

File

src/Entity/OrderReport.php, line 69

Class

OrderReport
Defines the order report entity class.

Namespace

Drupal\commerce_reports\Entity

Code

public function getOrderId() {
  return $this
    ->get('order_id')->target_id;
}