You are here

protected function Basic::getRefundPaymentStatusSelector in 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/Basic.php, line 392

Class

Basic
Provides the configuration for the payment_basic payment method plugin.

Namespace

Drupal\payment\Plugin\Payment\MethodConfiguration

Code

protected function getRefundPaymentStatusSelector(FormStateInterface $form_state) {
  $plugin_selector = $this
    ->getPaymentStatusSelector($form_state, 'refund', $this
    ->getRefundStatusId());
  $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;
}