I have a module with two pieces of config set using an admin form and Drupal the drupal config service.
Like this
/**
* {@inheritdoc}
*/
public function submitForm(array &$form, FormStateInterface $form_state) {
parent::submitForm($form, $form_state);
$this->config('mars_spot_collection.defaultcollections')
->set('default_collection_title', $form_state->getValue('default_collection_title'))
->set('default_collection_description', $form_state->getValue('default_collection_description'))
->save();
}
How do I make this conig available in the JSONAPI?
Cheers