function text_resize_library_info_alter in Text Resize 8
Implements hook_library_info_alter().
File
- ./
text_resize.module, line 44 - Creates a small block with jQuery links that resize text in specified tag.
Code
function text_resize_library_info_alter(&$libraries, $extension) {
$config = \Drupal::config('text_resize.settings');
$settings = $config
->get();
$libraries['drupalSettings']['drupalSettings']['text_resize'] = [
'text_resize_scope' => $settings['text_resize_scope'],
'text_resize_minimum' => $settings['text_resize_minimum'],
'text_resize_maximum' => $settings['text_resize_maximum'],
'text_resize_line_height_allow' => $settings['text_resize_line_height_allow'],
'text_resize_line_height_min' => $settings['text_resize_line_height_min'],
'text_resize_line_height_max' => $settings['text_resize_line_height_max'],
];
}