Elgg  Version master
GetSiteFaviconSizesHandler.php
Go to the documentation of this file.
1 <?php
2 
3 namespace Elgg\Icons;
4 
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 }
__invoke(\Elgg\Event $event)
Returns site icon sizes.
Models an event passed to event handlers.
Definition: Event.php:11