Elgg  Version 6.1
HeaderSizesHandler.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['header'] = [
23  'w' => 1920,
24  'h' => 400,
25  'square' => false,
26  'upscale' => true,
27  'crop' => true,
28  ];
29 
30  return $sizes;
31  }
32 }
Returns header image sizes.
__invoke(\Elgg\Event $event)
Returns header image sizes.
Models an event passed to event handlers.
Definition: Event.php:11