Elgg  Version 2.2
 All Classes Namespaces Files Functions Variables Pages
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:79
__construct(ElggSite $site)
Constructor.