You are here

protected function MolliePayment::getRefundPaymentStatusSelector in Mollie Payment 8.2

Gets the payment status selector for the refund phase.

Parameters

\Drupal\Core\Form\FormStateInterface $form_state:

Return value

\Drupal\plugin\Plugin\Plugin\PluginSelector\PluginSelectorInterface

File

src/Plugin/Payment/MethodConfiguration/MolliePayment.php, line 429

Class

MolliePayment
Provides the configuration for the mollie_payment payment method plugin.

Namespace

Drupal\mollie_payment\Plugin\Payment\MethodConfiguration

Code

protected function getRefundPaymentStatusSelector(FormStateInterface $form_state) {
  $plugin_selector = $this
    ->getPaymentStatusSelector($form_state, 'refund', $this
    ->getExecuteStatusId());
  $plugin_selector
    ->setLabel($this
    ->t('Payment refund status'));
  $plugin_selector
    ->setDescription($this
    ->t('The status to set payments to after being refunded by this payment method.'));
  return $plugin_selector;
}