Elgg  Version master
WebAppManifestResource.php
Go to the documentation of this file.
1 <?php
2 
3 namespace Elgg\Http;
4 
16 
22  public function __construct(protected \ElggSite $site) {
23  }
24 
30  public function get(): array {
31  return [
32  'display' => 'standalone',
33  'name' => $this->site->getDisplayName(),
34  'start_url' => $this->site->getUrl(),
35  ];
36  }
37 }
$site
Definition: icons.php:5
__construct(protected\ElggSite $site)
Constructor.
Overview: http://html5doctor.com/web-manifest-specification/ Spec: https://w3c.github.io/manifest/.