Elgg  Version 1.11
WebAppManifestResource.php
Go to the documentation of this file.
1 <?php
2 namespace Elgg\Http;
3 
4 use ElggSite;
5 
20  private $site;
21 
27  public function __construct(ElggSite $site) {
28  $this->site = $site;
29  }
30 
36  public function get() {
37  return [
38  'display' => 'standalone',
39  'name' => $this->site->getDisplayName(),
40  'start_url' => $this->site->getUrl(),
41  ];
42  }
43 }
$CONFIG site
The current site object.
Definition: config.php:136
__construct(ElggSite $site)
Constructor.