public function JsonQueryMapConfigForm::submitForm in GraphQL 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 ConfigFormBase::submitForm
File
- src/
Form/ JsonQueryMapConfigForm.php, line 79
Class
- JsonQueryMapConfigForm
- Configure performance settings for this site.
Namespace
Drupal\graphql\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
$this->cacheBackend
->delete('graphql_query_map_json_versions');
$paths = array_map('trim', explode("\n", $form_state
->getValue('lookup_paths', '')));
$this
->config('graphql.query_map_json.config')
->set('lookup_paths', $paths)
->save();
parent::submitForm($form, $form_state);
}