public function PaymentOption::toArray in Commerce Core 8.2
Gets the array representation of the payment option.
Return value
array The array representation of the payment option.
File
- modules/
payment/ src/ PaymentOption.php, line 131
Class
- PaymentOption
- Represents a payment option.
Namespace
Drupal\commerce_paymentCode
public function toArray() : array {
return [
'id' => $this->id,
'label' => $this->label,
'payment_gateway_id' => $this->paymentGatewayId,
'payment_method_id' => $this->paymentMethodId,
'payment_method_type_id' => $this->paymentMethodTypeId,
];
}