You are here

public function PaymentMethodUpdatePaymentStatusInterface::getSettablePaymentStatuses in Payment 8.2

Returns the statuses that can be set on a payment.

Parameters

\Drupal\Core\Session\AccountInterface $account:

\Drupal\payment\Entity\PaymentInterface $payment: The payment to set the status on.

Return value

string[] The plugin IDs of the settable statuses.

1 method overrides PaymentMethodUpdatePaymentStatusInterface::getSettablePaymentStatuses()
Basic::getSettablePaymentStatuses in src/Plugin/Payment/Method/Basic.php
Returns the statuses that can be set on a payment.

File

src/Plugin/Payment/Method/PaymentMethodUpdatePaymentStatusInterface.php, line 42

Class

PaymentMethodUpdatePaymentStatusInterface
Defines a payment method that controls payment status updates.

Namespace

Drupal\payment\Plugin\Payment\Method

Code

public function getSettablePaymentStatuses(AccountInterface $account, PaymentInterface $payment);