You are here

function hook_pwa_manifest_alter in Progressive Web App 8

Same name and namespace in other branches
  1. 7.2 pwa.api.php \hook_pwa_manifest_alter()
  2. 7 pwa.api.php \hook_pwa_manifest_alter()
  3. 2.x pwa.api.php \hook_pwa_manifest_alter()

Alters manifest data.

This hook allows altering the generated manifest data before encoding it to JSON.

Parameters

array &$manifestData: Manifest data generated in Manifest::getOutput().

1 invocation of hook_pwa_manifest_alter()
Manifest::getOutput in src/Manifest.php
Build the manifest json string based on the configuration.

File

./pwa.api.php, line 108
Hooks provided by the Progressive Web App module.

Code

function hook_pwa_manifest_alter(&$manifestData) {
  $manifestData['short_name'] = 'App';
}