You are here

protected function Basic::getCapturePaymentStatusSelector in Payment 8.2

Gets the payment status selector for the capture phase.

Parameters

\Drupal\Core\Form\FormStateInterface $form_state:

Return value

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

File

src/Plugin/Payment/MethodConfiguration/Basic.php, line 377

Class

Basic
Provides the configuration for the payment_basic payment method plugin.

Namespace

Drupal\payment\Plugin\Payment\MethodConfiguration

Code

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