Elgg  Version 4.3
AddManifestLinkHandler.php
Go to the documentation of this file.
1 <?php
2 
3 namespace Elgg\Page;
4 
11 
19  public function __invoke(\Elgg\Hook $hook) {
20  $result = $hook->getValue();
21  $result['links']['manifest'] = [
22  'rel' => 'manifest',
23  'href' => elgg_get_simplecache_url('resources/manifest.json'),
24  ];
25 
26  return $result;
27  }
28 }
__invoke(\Elgg\Hook $hook)
Adds the manifest.json to head links.
Add manifest link to page head.
elgg_get_simplecache_url($view, $subview= '')
Get the URL for the cached view.
Definition: cache.php:139
Models an event passed to hook handlers.
Definition: Hook.php:11