Skip to content
This repository has been archived by the owner on Sep 30, 2024. It is now read-only.

Commit

Permalink
[SD-174] Enable webform_wizard_page for Tide core (#110)
Browse files Browse the repository at this point in the history
  • Loading branch information
vincent-gao authored Sep 20, 2024
1 parent fedc365 commit 6f8f3b0
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
1 change: 0 additions & 1 deletion config/optional/webform.settings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,6 @@ element:
webform_time: webform_time
webform_variant: webform_variant
webform_video_file: webform_video_file
webform_wizard_page: webform_wizard_page
html_editor:
disabled: false
format: ''
Expand Down
1 change: 0 additions & 1 deletion src/TideOperation.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ public static function installWebformConfig() {
'webform_time',
'webform_variant',
'webform_video_file',
'webform_wizard_page',
];
$config_factory = \Drupal::configFactory();
$config = $config_factory->getEditable('webform.settings');
Expand Down
11 changes: 11 additions & 0 deletions tide_webform.install
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,14 @@ function tide_webform_install() {
TideOperation::installWebformConfig();
TideOperation::accessTextEditorInWebform();
}

/**
* Enables webform_wizard_page element.
*/
function tide_webform_update_10001() {
$config = \Drupal::configFactory()->getEditable('webform.settings');
$excluded_elements_value = $config->get('element.excluded_elements');
unset($excluded_elements_value['webform_wizard_page']);
$config->set('element.excluded_elements', $excluded_elements_value);
$config->save();
}

0 comments on commit 6f8f3b0

Please sign in to comment.