public function Single::submitForm in Siteimprove 8
Form submission handler.
Submit Siteimprove Domain plugin settings.
Parameters
array $form: Form to submit.
\Drupal\Core\Form\FormStateInterface $form_state: Form state.
Overrides SiteimproveDomainBase::submitForm
File
- src/
Plugin/ SiteimproveDomain/ Single.php, line 83
Class
- Single
- Provides simple plugin instance of Siteimprove Domain settings.
Namespace
Drupal\siteimprove\Plugin\SiteimproveDomainCode
public function submitForm(array &$form, FormStateInterface $form_state) {
$config = $this
->config('siteimprove.domain.single.settings');
$config
->set('domain', $form_state
->getValue('single_domain'))
->save();
}