public function Memory::submitConfigurationForm in SMS Framework 2.1.x
Same name and namespace in other branches
- 8 tests/modules/sms_test_gateway/src/Plugin/SmsGateway/Memory.php \Drupal\sms_test_gateway\Plugin\SmsGateway\Memory::submitConfigurationForm()
- 2.x tests/modules/sms_test_gateway/src/Plugin/SmsGateway/Memory.php \Drupal\sms_test_gateway\Plugin\SmsGateway\Memory::submitConfigurationForm()
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 SmsGatewayPluginBase::submitConfigurationForm
File
- tests/
modules/ sms_test_gateway/ src/ Plugin/ SmsGateway/ Memory.php, line 67
Class
- Memory
- Defines a gateway storing transmitted SMS in memory.
Namespace
Drupal\sms_test_gateway\Plugin\SmsGatewayCode
public function submitConfigurationForm(array &$form, FormStateInterface $form_state) {
$this->configuration['widget'] = $form_state
->getValue('widget');
}