Elgg
Version 6.1
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
engine
classes
Elgg
Page
AddManifestLinkHandler.php
Go to the documentation of this file.
1
<?php
2
3
namespace
Elgg\Page
;
4
10
class
AddManifestLinkHandler
{
11
19
public
function
__invoke
(\
Elgg
\
Event
$event) {
20
$result
= $event->getValue();
21
$result
[
'links'
][
'manifest'
] = [
22
'rel'
=>
'manifest'
,
23
'href'
=>
elgg_get_simplecache_url
(
'resources/manifest.json'
),
24
];
25
26
return
$result
;
27
}
28
}
$result
$result
Definition:
set_maintenance_mode.php:11
Elgg\Page\AddManifestLinkHandler
Add manifest link to page head.
Definition:
AddManifestLinkHandler.php:10
Elgg
Definition:
ActionsService.php:3
Elgg\Page
Definition:
AddFaviconLinksHandler.php:3
Elgg\Page\AddManifestLinkHandler\__invoke
__invoke(\Elgg\Event $event)
Adds the manifest.json to head links.
Definition:
AddManifestLinkHandler.php:19
elgg_get_simplecache_url
elgg_get_simplecache_url(string $view)
Get the URL for the cached view.
Definition:
cache.php:78
Elgg\Event
Models an event passed to event handlers.
Definition:
Event.php:11
Generated on Wed Dec 4 2024 00:00:21 for Elgg by
1.8.11