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