public function Payment::getOrderId in Commerce Core 8.2
Gets the parent order ID.
Return value
int|null The order ID, or null.
Overrides PaymentInterface::getOrderId
1 call to Payment::getOrderId()
- Payment::urlRouteParameters in modules/
payment/ src/ Entity/ Payment.php - Gets an array of placeholders for this entity.
File
- modules/
payment/ src/ Entity/ Payment.php, line 131
Class
- Payment
- Defines the payment entity class.
Namespace
Drupal\commerce_payment\EntityCode
public function getOrderId() {
return $this
->get('order_id')->target_id;
}