public function PaymentGatewayInterface::buildPaymentOperations in Commerce Core 8.2
Builds the available operations for the given payment.
Parameters
\Drupal\commerce_payment\Entity\PaymentInterface $payment: The payment.
Return value
array The operations. Keyed by operation ID, each value is an array with the following keys:
- title: The operation title.
- page_title: The operation page title.
- plugin_form: The plugin form ID.
- access: Whether the operation is allowed for the given payment.
1 method overrides PaymentGatewayInterface::buildPaymentOperations()
- PaymentGatewayBase::buildPaymentOperations in modules/
payment/ src/ Plugin/ Commerce/ PaymentGateway/ PaymentGatewayBase.php - Builds the available operations for the given payment.
File
- modules/
payment/ src/ Plugin/ Commerce/ PaymentGateway/ PaymentGatewayInterface.php, line 124
Class
- PaymentGatewayInterface
- Defines the base interface for payment gateways.
Namespace
Drupal\commerce_payment\Plugin\Commerce\PaymentGatewayCode
public function buildPaymentOperations(PaymentInterface $payment);