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