Elgg
Version master
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
engine
classes
Elgg
Icons
HeaderSizesHandler.php
Go to the documentation of this file.
1
<?php
2
3
namespace
Elgg\Icons
;
4
10
class
HeaderSizesHandler
{
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
}
Elgg\Icons\HeaderSizesHandler
Returns header image sizes.
Definition:
HeaderSizesHandler.php:10
Elgg
Definition:
ActionsService.php:3
Elgg\Icons
Definition:
AddFontAwesomeClassesHandler.php:3
Elgg\Icons\HeaderSizesHandler\__invoke
__invoke(\Elgg\Event $event)
Returns header image sizes.
Definition:
HeaderSizesHandler.php:19
Elgg\Event
Models an event passed to event handlers.
Definition:
Event.php:11
Generated on Sat Dec 21 2024 00:02:52 for Elgg by
1.8.11