- π©πͺGermany rupl
The API file seems fairly populated, but TBH I didn't evaluate whether it reflected the current state of the D8+ module.
https://git.drupalcode.org/project/pwa/-/blob/8.x-1.x/pwa.api.php
- Status changed to Needs work
about 1 year ago 8:54am 16 May 2023 - π©πͺGermany ChristianAdamski Berlin, Germany
Currently listed in .api.php:
hook_pwa_cache_urls_alter(&$cacheUrls, CacheableMetadata &$cacheableMetadata) { hook_pwa_exclude_urls_alter(&$excludeUrls, CacheableMetadata &$cacheableMetadata) { hook_pwa_cache_urls_assets_alter(&$resources) { hook_pwa_cache_urls_assets_page_alter(&$resources, $page, $xpath) { hook_pwa_manifest_alter(&$manifestData) {
Used alter hooks as of 2.x-rc2:
Module:
- pwa_install_path
- pwa_cache_urls_assets_page
- pwa_cache_urls_assets
- pwa_cache_urls
- pwa_exclude_urls
- pwa_replace_placeholders
- pwa_manifestMissing in .api.php:
- hook_pwa_install_path_alter
- hook_pwa_replace_placeholders_alterTheme alter hooks:
- pwa_cache_urls_assets_page
- pwa_manifest - π©πͺGermany ChristianAdamski Berlin, Germany
Function definitions:
\Drupal::moduleHandler()->alter('pwa_install_path', $installPath);
$this->moduleHandler->alter('pwa_replace_placeholders', $replace);
Therefor api additions:
function hook_pwa_install_path_alter(&$installPath) {
function hook_pwa_replace_placeholders_alter(&$replace) {
No idea what these do. Also: use TypeHints?