Elgg
Version 4.3
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
engine
classes
Elgg
Widgets
DefaultWidgetsContainerPermissionsHandler.php
Go to the documentation of this file.
1
<?php
2
3
namespace
Elgg\Widgets
;
4
10
class
DefaultWidgetsContainerPermissionsHandler
{
11
19
public
function
__invoke
(\
Elgg
\
Hook
$hook) {
20
if
($hook->getParam(
'subtype'
) !==
'widget'
) {
21
return
;
22
}
23
24
if
(
elgg_in_context
(
'create_default_widgets'
)) {
25
return
true
;
26
}
27
}
28
}
Elgg\Widgets
Definition:
CreateAdminWidgetsHandler.php:3
Elgg\Widgets\DefaultWidgetsContainerPermissionsHandler\__invoke
__invoke(\Elgg\Hook $hook)
Overrides permissions checks when creating widgets for logged out users.
Definition:
DefaultWidgetsContainerPermissionsHandler.php:19
Elgg\Hook
Models an event passed to hook handlers.
Definition:
Hook.php:11
Elgg
Definition:
ActionsService.php:3
elgg_in_context
elgg_in_context($context)
Check if this context exists anywhere in the stack.
Definition:
context.php:78
Elgg\Widgets\DefaultWidgetsContainerPermissionsHandler
Bypasses permissions for default widgets.
Definition:
DefaultWidgetsContainerPermissionsHandler.php:10
Generated on Fri Feb 3 2023 00:00:22 for Elgg by
1.8.11