Loading multiselect.module +3 −2 Original line number Diff line number Diff line Loading @@ -32,9 +32,10 @@ function multiselect_help($route_name, RouteMatchInterface $route_match) { /** * Implements hook_page_attachments(). */ function multiselect_page_attachments(&$attachments) { function multiselect_page_attachments(array &$attachments) { $config = \Drupal::config('multiselect.settings'); $attachments['#attached']['drupalSettings']['multiselect'] = ['widths' => $config->get('multiselect.widths')]; $widths = $config->get('multiselect.widths'); $attachments['#attached']['drupalSettings']['multiselect']['widths'] = $widths; } /** Loading Loading
multiselect.module +3 −2 Original line number Diff line number Diff line Loading @@ -32,9 +32,10 @@ function multiselect_help($route_name, RouteMatchInterface $route_match) { /** * Implements hook_page_attachments(). */ function multiselect_page_attachments(&$attachments) { function multiselect_page_attachments(array &$attachments) { $config = \Drupal::config('multiselect.settings'); $attachments['#attached']['drupalSettings']['multiselect'] = ['widths' => $config->get('multiselect.widths')]; $widths = $config->get('multiselect.widths'); $attachments['#attached']['drupalSettings']['multiselect']['widths'] = $widths; } /** Loading