Elgg
Version master
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
engine
classes
Elgg
Icons
GetSiteFaviconSizesHandler.php
Go to the documentation of this file.
1
<?php
2
3
namespace
Elgg\Icons
;
4
10
class
GetSiteFaviconSizesHandler
{
11
19
public
function
__invoke
(\
Elgg
\
Event
$event) {
20
$sizes = $event->getValue();
21
22
$sizes[
'icon-16'
] = [
23
'w'
=> 16,
24
'h'
=> 16,
25
'square'
=>
true
,
26
'upscale'
=>
true
,
27
'crop'
=>
true
,
28
];
29
30
$sizes[
'icon-32'
] = [
31
'w'
=> 32,
32
'h'
=> 32,
33
'square'
=>
true
,
34
'upscale'
=>
true
,
35
'crop'
=>
true
,
36
];
37
38
$sizes[
'icon-64'
] = [
39
'w'
=> 64,
40
'h'
=> 64,
41
'square'
=>
true
,
42
'upscale'
=>
true
,
43
'crop'
=>
true
,
44
];
45
46
$sizes[
'icon-128'
] = [
47
'w'
=> 128,
48
'h'
=> 128,
49
'square'
=>
true
,
50
'upscale'
=>
true
,
51
'crop'
=>
true
,
52
];
53
54
return
$sizes;
55
}
56
}
Elgg\Icons\GetSiteFaviconSizesHandler
Returns site icon sizes.
Definition:
GetSiteFaviconSizesHandler.php:10
Elgg
Definition:
ActionsService.php:3
Elgg\Icons
Definition:
AddFontAwesomeClassesHandler.php:3
Elgg\Icons\GetSiteFaviconSizesHandler\__invoke
__invoke(\Elgg\Event $event)
Returns site icon sizes.
Definition:
GetSiteFaviconSizesHandler.php:19
Elgg\Event
Models an event passed to event handlers.
Definition:
Event.php:11
Generated on Fri Dec 13 2024 00:03:05 for Elgg by
1.8.11