public function CurrencySignElement::submitForm in Currency 8.3
Form submission handler.
Parameters
array $form: An associative array containing the structure of the form.
\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form.
Overrides FormInterface::submitForm
File
- modules/
currency_test/ src/ CurrencySignElement.php, line 51
Class
- CurrencySignElement
- Provides a form to test the currency_sign element.
Namespace
Drupal\currency_testCode
public function submitForm(array &$form, FormStateInterface $form_state) {
$values = $form_state
->getValues();
\Drupal::state()
->set('currency_test_currency_sign_element', $values['container']['sign']);
}