You are here

function webform_update_8041 in Webform 6.x

Same name and namespace in other branches
  1. 8.5 includes/webform.install.update.inc \webform_update_8041()

Issue #2871606: Add (optional) support for Chosen.

File

includes/webform.install.update.inc, line 862
Archived Webform update hooks.

Code

function webform_update_8041() {
  $config = \Drupal::configFactory()
    ->getEditable('webform.settings');
  $data = $config
    ->getRawData();
  $data['libraries']['excluded_libraries'][] = 'jquery.chosen';
  $config
    ->setData($data);
  $config
    ->save();
}