You are here

protected function MolliePayment::getExecutePaymentStatusSelector in Mollie Payment 8.2

Gets the payment status selector for the execute phase.

Parameters

\Drupal\Core\Form\FormStateInterface $form_state:

Return value

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

File

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

Class

MolliePayment
Provides the configuration for the mollie_payment payment method plugin.

Namespace

Drupal\mollie_payment\Plugin\Payment\MethodConfiguration

Code

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