Skip to content
Snippets Groups Projects

Implement custom webform css setting

Merged David Peherstorfer requested to merge feature/webform-share-css into 1.0.x
Files
3
@@ -120,6 +120,15 @@ class NodeHiveSettingsForm extends ConfigFormBase {
),
];
$form['editor_experience']['webform_styles_url'] = [
'#type' => 'url',
'#title' => $this->t('Webform Styles URL'),
'#default_value' => $config->get('webform_styles_url'),
'#description' => $this->t(
'Example: https://www.yourfrontend.com/webform.css'
),
];
// Section 2: Regional settings.
$form['regional_settings'] = [
'#type' => 'details',
@@ -203,6 +212,7 @@ class NodeHiveSettingsForm extends ConfigFormBase {
// Save the configuration.
$this->config('nodehive_core.settings')
->set('company_name', $form_state->getValue('company_name'))
->set('webform_styles_url', $form_state->getValue('webform_styles_url'))
->set('ckeditor_styles_url', $ckeditor_styles_url)
->save();
Loading