Elgg  Version 2.2
WebAppManifestResource.php
Go to the documentation of this file.
1 <?php
2 namespace Elgg\Http;
3 
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.
http free of to any person obtaining a copy of this software and associated documentation to deal in the Software without including without limitation the rights to use
Definition: MIT-LICENSE.txt:5