function popup_message_library_info_alter in Popup message 8
Implements hook_library_info_alter().
File
- ./
popup_message.module, line 38 - Contains \Drupal\popup_message\popup_message.module.
Code
function popup_message_library_info_alter(array &$libraries, $extension) {
$config_popup = \Drupal::configFactory()
->getEditable('popup_message.settings');
$style = $config_popup
->get('style');
if ($extension === 'popup_message') {
$libraries['popup_message_style']['css']['base'] = [];
$libraries['popup_message_style']['css']['base']['styles' . '/' . $style] = [];
}
}