You are here

function icon_select_preprocess_icon_select_svg_icon in Icon Select 8

Implements theme_preprocess_icon_select_svg_icon.

File

./icon_select.module, line 29
Basic module file for icon_select module.

Code

function icon_select_preprocess_icon_select_svg_icon(&$variables) {
  $variables['#attached']['library'][] = 'icon_select/drupal.icon_select_frontend';
  if (!\Drupal::currentUser()
    ->isAnonymous()) {
    $variables['#attached']['library'][] = 'icon_select/drupal.icon_select_backend';
  }
}