Commit da520632 authored by jrockowitz's avatar jrockowitz
Browse files

Issue #3103571: Move deprecated icheck support into a dedicated sub-module

parent 7b3b6905
Loading
Loading
Loading
Loading
−1
Changes for config/install/webform.settings.yml: 0 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -165,7 +165,6 @@ element:
  default_empty_option: true
  default_empty_option_required: ''
  default_empty_option_optional: ''
  default_icheck: ''
  default_algolia_places_app_id: ''
  default_algolia_places_api_key: ''
  excluded_elements:
−3
Changes for config/schema/webform.settings.schema.yml: 0 added lines, 3 removed lines.
Original line number Diff line number Diff line
@@ -285,9 +285,6 @@ webform.settings:
        horizontal_rule_classes:
          type: string
          label: 'Horizontal rule CSS classes'
        default_icheck:
          type: string
          label: 'Default iCheck style'
        default_description_display:
          type: string
          label: 'Default title display'
+1 −1
Changes for docs/UPDATE-LIBRARIES.md: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -57,7 +57,7 @@ Enable and download all libraries

    cd /var/www/sites/d8_webform
    drush php-eval "\Drupal::configFactory()->getEditable('webform.settings')->set('libraries.excluded_libraries', [])->save();"
    drush en -y webform_image_select webform_options_custom
    drush en -y webform_image_select webform_toggles webform_location_geocomplete webform_icheck webform_options_custom
    drush webform:libraries:download

Update libraries.zip
+17
Changes for includes/webform.install.update.inc: 17 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -3414,3 +3414,20 @@ function webform_update_8182() {
    }
  }
}

/**
 * Issue #3103571: Move deprecated icheck support into a dedicated sub-module.
 */
function webform_update_8183() {
  $config_factory = \Drupal::configFactory();
  foreach ($config_factory->listAll('webform.webform.') as $webform_config_name) {
    $webform_config = $config_factory->get($webform_config_name);
    $elements = $webform_config->get('elements');
    if (strpos($elements , 'icheck') !== FALSE) {
      // Enable the webform_icheck.module.
      \Drupal::service('module_installer')
        ->install(['webform_icheck']);
      return;
    }
  }
}
+7
Changes for modules/webform_icheck/config/schema/webform.third_party.webform_icheck.schema.yml: 7 added lines, 0 removed lines.
Original line number Diff line number Diff line
webform.admin_settings.third_party.webform_icheck:
  type: mapping
  label: 'iCheck'
  mapping:
    default_icheck:
      type: string
      label: 'Default iCheck style'
Loading