You are here

function template_preprocess_pwa_add_to_home_screen in Progressive Web App 8

Prepares variables for the add to home screen block template.

File

modules/pwa_a2hs/pwa_a2hs.module, line 45
Contains pwa_a2hs.module.

Code

function template_preprocess_pwa_add_to_home_screen(&$variables) {
  $variables['attributes']['class'][] = 'pwa-a2hs';
  $variables['attributes']['class'][] = 'hidden';
  $variables['attributes']['name'] = 'pwa-a2hs-button-target';
}