You are here

function better_social_sharing_buttons_preprocess_better_social_sharing_buttons in Better Social Sharing Buttons 8

Same name and namespace in other branches
  1. 8.3 better_social_sharing_buttons.module \better_social_sharing_buttons_preprocess_better_social_sharing_buttons()

Implements hook_preprocess_HOOK().

File

./better_social_sharing_buttons.module, line 28
Add template file for the social buttons.

Code

function better_social_sharing_buttons_preprocess_better_social_sharing_buttons(&$variables) {
  $config = \Drupal::config('better_social_sharing_buttons.settings');
  $variables['social_buttons_sprite'] = '/' . drupal_get_path('module', 'better_social_sharing_buttons') . '/assets/dist/sprites/' . $config
    ->get('iconset') . '.svg';
}