Elgg  Version master
WebAppManifestResource.php
Go to the documentation of this file.
1 <?php
2 
3 namespace Elgg\Http;
4 
16 
18  private $site;
19 
25  public function __construct(\ElggSite $site) {
26  $this->site = $site;
27  }
28 
34  public function get() {
35  return [
36  'display' => 'standalone',
37  'name' => $this->site->getDisplayName(),
38  'start_url' => $this->site->getUrl(),
39  ];
40  }
41 }
__construct(\ElggSite $site)
Constructor.
Overview: http://html5doctor.com/web-manifest-specification/ Spec: https://w3c.github.io/manifest/.