public function PaymentMethodConfigurationBase::submitConfigurationForm in Payment 8.2
Form submission handler.
Parameters
array $form: An associative array containing the structure of the plugin form as built by static::buildConfigurationForm().
\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. Calling code should pass on a subform state created through \Drupal\Core\Form\SubformState::createForSubform().
Overrides PluginFormInterface::submitConfigurationForm
1 call to PaymentMethodConfigurationBase::submitConfigurationForm()
- Basic::submitConfigurationForm in src/
Plugin/ Payment/ MethodConfiguration/ Basic.php - Form submission handler.
1 method overrides PaymentMethodConfigurationBase::submitConfigurationForm()
- Basic::submitConfigurationForm in src/
Plugin/ Payment/ MethodConfiguration/ Basic.php - Form submission handler.
File
- src/
Plugin/ Payment/ MethodConfiguration/ PaymentMethodConfigurationBase.php, line 163
Class
- PaymentMethodConfigurationBase
- Provides a base payment method configuration plugin.
Namespace
Drupal\payment\Plugin\Payment\MethodConfigurationCode
public function submitConfigurationForm(array &$form, FormStateInterface $form_state) {
$values = $form_state
->getValues();
$message = NestedArray::getValue($values, $form['message']['#parents']);
if ($this->moduleHandler
->moduleExists('filter')) {
$this
->setMessageText($message['value']);
$this
->setMessageTextFormat($message['format']);
}
else {
$this
->setMessageText($message);
}
}