public function RemoveHttpHeadersSettings::submitForm in Remove HTTP headers 8
We cannot add a return typehint or add a return type. Because of the interface / PHPCS rule "Drupal.Commenting.FunctionComment.VoidReturn".
@phpstan-ignore-next-line
Overrides ConfigFormBase::submitForm
File
- src/
Form/ RemoveHttpHeadersSettings.php, line 117
Class
- RemoveHttpHeadersSettings
- Form for the module settings.
Namespace
Drupal\remove_http_headers\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
$headersToRemove = $this
->convertHeadersToRemoveValueToArray($form_state
->getValue('headers_to_remove'));
$this->configManager
->saveHeadersToRemoveToConfig($headersToRemove);
parent::submitForm($form, $form_state);
}