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