Elgg  Version master
events.php
Go to the documentation of this file.
1 <?php
2 return [
3  'access_collection:name' => [
4  'access_collection' => [
5  \Elgg\Friends\AclNameHandler::class => [],
6  ],
7  ],
8  'access:collections:write' => [
9  'all' => [
10  \Elgg\WalledGarden\RemovePublicAccessHandler::class => ['priority' => 9999],
11  ],
12  ],
13  'action:validate' => [
14  'all' => [
15  \Elgg\Entity\CropIcon::class => [],
16  ],
17  ],
18  'all' => [
19  'all' => [
20  \Elgg\Notifications\EnqueueEventHandler::class => [
21  'priority' => 700,
22  ],
23  ],
24  ],
25  'attributes' => [
26  'htmlawed' => [
27  '\Elgg\Input\ValidateInputHandler::sanitizeStyles' => [],
28  ],
29  ],
30  'ban' => [
31  'user' => [
32  \Elgg\Users\BanUserNotificationHandler::class => [],
33  ],
34  ],
35  'cache:clear' => [
36  'system' => [
37  '\Elgg\Cache\EventHandlers::clear' => [],
38  ],
39  ],
40  'cache:clear:after' => [
41  'system' => [
42  '\Elgg\Cache\EventHandlers::enable' => [],
43  ],
44  ],
45  'cache:clear:before' => [
46  'system' => [
47  '\Elgg\Cache\EventHandlers::disable' => [],
48  ],
49  ],
50  'cache:generate' => [
51  'css' => [
52  \Elgg\Views\PreProcessCssHandler::class => [],
53  ],
54  ],
55  'cache:invalidate' => [
56  'system' => [
57  '\Elgg\Cache\EventHandlers::invalidate' => [],
58  ],
59  ],
60  'cache:purge' => [
61  'system' => [
62  '\Elgg\Cache\EventHandlers::purge' => [],
63  ],
64  ],
65  'complete' => [
66  'upgrade' => [
67  \Elgg\Upgrade\UpgradeCompletedAdminNoticeHandler::class => [],
68  ],
69  ],
70  'container_logic_check' => [
71  'all' => [
72  \Elgg\Comments\ContainerLogicHandler::class => [],
73  ],
74  ],
75  'container_permissions_check' => [
76  'all' => [
77  \Elgg\Groups\MemberPermissionsHandler::class => [],
78  ],
79  'object' => [
80  \Elgg\Comments\ContainerPermissionsHandler::class => [],
81  \Elgg\Widgets\DefaultWidgetsContainerPermissionsHandler::class => [],
82  ],
83  ],
84  'create' => [
85  'relationship' => [
86  \Elgg\Friends\AddToAclHandler::class => [],
87  ],
88  ],
89  'create:after' => [
90  'all' => [
91  \Elgg\Notifications\MentionsEnqueueEventHandler::class => [],
92  ],
93  'object' => [
94  \Elgg\Comments\AutoSubscribeHandler::class => [],
95  \Elgg\Notifications\CreateContentEventHandler::class => [],
96  \Elgg\Upgrade\CreateAdminNoticeHandler::class => [],
97  ],
98  'river' => [
99  \Elgg\Comments\UpdateRiverLastActionHandler::class => [],
100  \Elgg\River\UpdateLastActionHandler::class => [],
101  ],
102  'user' => [
103  \Elgg\Friends\CreateAclHandler::class => [],
104  ],
105  ],
106  'cron' => [
107  'daily' => [
108  \Elgg\Email\DelayedQueue\CronHandler::class => [],
109  'Elgg\Users\Validation::removeUnvalidatedUsers' => [],
110  'Elgg\Users\Validation::notifyAdminsAboutPendingUsers' => [],
111  \Elgg\Users\CleanupPersistentLoginHandler::class => [],
112  ],
113  'minute' => [
114  \Elgg\Notifications\ProcessQueueCronHandler::class => ['priority' => 100],
115  ],
116  'weekly' => [
117  \Elgg\Email\DelayedQueue\CronHandler::class => [],
118  'Elgg\Users\Validation::notifyAdminsAboutPendingUsers' => [],
119  ],
120  ],
121  'delete' => [
122  'relationship' => [
123  \Elgg\Friends\RemoveFromAclHandler::class => [],
124  ],
125  ],
126  'diagnostics:report' => [
127  'system' => [
128  'Elgg\Diagnostics\Reports::getBasic' => ['priority' => 0],
129  'Elgg\Diagnostics\Reports::getSigs' => ['priority' => 1],
130  'Elgg\Diagnostics\Reports::getGlobals' => [],
131  'Elgg\Diagnostics\Reports::getPHPInfo' => [],
132  ],
133  ],
134  'elgg.data' => [
135  'page' => [
136  \Elgg\Javascript\SetLightboxConfigHandler::class => [],
137  ],
138  ],
139  'entity:favicon:sizes' => [
140  'site' => [
141  \Elgg\Icons\GetSiteFaviconSizesHandler::class => [],
142  ],
143  ],
144  'entity:header:sizes' => [
145  'all' => [
146  \Elgg\Icons\HeaderSizesHandler::class => [],
147  ],
148  ],
149  'entity:icon:file' => [
150  'user' => [
151  \Elgg\Icons\SetUserIconFileHandler::class => [],
152  ],
153  ],
154  'entity:url' => [
155  'object' => [
156  \Elgg\Widgets\EntityUrlHandler::class => [],
157  ],
158  ],
159  'form:prepare:fields' => [
160  'admin/security/security_txt' => [
161  \Elgg\Forms\PrepareSecurityTxt::class => [],
162  ],
163  'all' => [
164  \Elgg\Forms\PrepareFields::class => ['priority' => 9999],
165  ],
166  ],
167  'head' => [
168  'page' => [
169  \Elgg\Page\AddFaviconLinksHandler::class => [],
170  \Elgg\Page\AddManifestLinkHandler::class => [],
171  \Elgg\Page\AddMetasHandler::class => ['priority' => 20],
172  \Elgg\Page\AddRssLinkHandler::class => ['priority' => 30],
173  \Elgg\Page\AddTitleHandler::class => ['priority' => 10],
174  ],
175  ],
176  'init' => [
177  'system' => [
178  'Elgg\Application\SystemEventHandlers::initEarly' => ['priority' => 0],
179  'Elgg\Application\SystemEventHandlers::init' => [],
180  'Elgg\Application\SystemEventHandlers::initLate' => ['priority' => 1000],
181  ],
182  ],
183  'login:before' => [
184  'user' => [
185  'Elgg\Users\Validation::preventUserLogin' => [
186  'priority' => 999, // allow others to throw exceptions earlier
187  ],
188  ],
189  ],
190  'make_admin' => [
191  'user' => [
192  \Elgg\Widgets\CreateAdminWidgetsHandler::class => [],
193  ],
194  ],
195  'output' => [
196  'page' => [
197  \Elgg\Debug\Profiler::class => ['priority' => 999],
198  ],
199  ],
200  'output:before' => [
201  'page' => [
202  \Elgg\Page\SetXFrameOptionsHeaderHandler::class => [],
203  ],
204  ],
205  'permissions_check' => [
206  'object' => [
207  \Elgg\Comments\EditPermissionsHandler::class => [],
208  ],
209  ],
210  'permissions_check:comment' => [
211  'object' => [
212  \Elgg\Comments\GroupMemberPermissionsHandler::class => ['priority' => 999],
213  ],
214  ],
215  'prepare' => [
216  'menu:admin_header' => [
217  'Elgg\Menus\AdminHeader::prepareAdminAdministerUsersChildren' => [],
218  ],
219  'menu:admin:users:bulk' => [
220  'Elgg\Menus\AdminUsersBulk::disableItems' => [],
221  ],
222  'menu:breadcrumbs' => [
223  '\Elgg\Menus\Breadcrumbs::addHomeItem' => ['priority' => 10000],
224  '\Elgg\Menus\Breadcrumbs::cleanupBreadcrumbs' => ['priority' => 9999],
225  ],
226  'menu:site' => [
227  'Elgg\Menus\Site::reorderItems' => [
228  'priority' => 999,
229  ],
230  ],
231  'system:email' => [
232  \Elgg\Email\DefaultMessageIdHeaderHandler::class => ['priority' => 1],
233  \Elgg\Email\ThreadHeadersHandler::class => [],
234  ],
235  ],
236  'public_pages' => [
237  'walled_garden' => [
238  \Elgg\WalledGarden\ExtendPublicPagesHandler::class => [],
239  ],
240  ],
241  'ready' => [
242  'system' => [
243  '\Elgg\Application\SystemEventHandlers::ready' => [],
244  ],
245  ],
246  'register' => [
247  'menu:admin_control_panel' => [
248  'Elgg\Menus\AdminControlPanel::register' => [],
249  ],
250  'menu:admin_header' => [
251  'Elgg\Menus\AdminHeader::register' => [],
252  'Elgg\Menus\AdminHeader::registerMaintenance' => [],
253  'Elgg\Menus\AdminHeader::registerAdminAdminister' => [],
254  'Elgg\Menus\AdminHeader::registerAdminConfigure' => [],
255  'Elgg\Menus\AdminHeader::registerAdminDefaultWidgets' => [],
256  'Elgg\Menus\AdminHeader::registerAdminInformation' => [],
257  'Elgg\Menus\AdminHeader::registerAdminUtilities' => [],
258  ],
259  'menu:admin_footer' => [
260  'Elgg\Menus\AdminFooter::registerHelpResources' => [],
261  ],
262  'menu:admin:users:bulk' => [
263  'Elgg\Menus\AdminUsersBulk::registerActions' => [],
264  ],
265  'menu:annotation' => [
266  'Elgg\Menus\Annotation::registerDelete' => [],
267  ],
268  'menu:entity' => [
269  'Elgg\Menus\Entity::registerDelete' => [],
270  'Elgg\Menus\Entity::registerEdit' => [],
271  'Elgg\Menus\Entity::registerUserHoverAdminSection' => [],
272  'Elgg\Menus\UserHover::registerLoginAs' => [],
273  ],
274  'menu:entity:object:comment' => [
275  'Elgg\Menus\Entity::registerComment' => [],
276  ],
277  'menu:entity:object:elgg_upgrade' => [
278  'Elgg\Menus\Entity::registerUpgrade' => [],
279  ],
280  'menu:entity:object:plugin' => [
281  'Elgg\Menus\Entity::registerPlugin' => [],
282  ],
283  'menu:entity_navigation' => [
284  'Elgg\Menus\EntityNavigation::registerPreviousNext' => [],
285  ],
286  'menu:filter:admin/upgrades' => [
287  'Elgg\Menus\Filter::registerAdminUpgrades' => [],
288  ],
289  'menu:filter:admin/users' => [
290  'Elgg\Menus\Filter::registerAdminUsers' => [],
291  'Elgg\Menus\FilterSortItems::registerTimeCreatedSorting' => [],
292  'Elgg\Menus\FilterSortItems::registerNameSorting' => [],
293  'Elgg\Menus\FilterSortItems::registerSortingDropdown' => ['priority' => 9999],
294  ],
295  'menu:filter:filter' => [
296  'Elgg\Menus\Filter::registerFilterTabs' => ['priority' => 1],
297  ],
298  'menu:filter:profile/edit' => [
299  'Elgg\Menus\Filter::registerAvatarEdit' => [],
300  ],
301  'menu:filter:settings/notifications' => [
302  'Elgg\Menus\Filter::registerNotificationSettings' => [],
303  ],
304  'menu:footer' => [
305  'Elgg\Menus\Footer::registerRSS' => [],
306  'Elgg\Menus\Footer::registerElggBranding' => [],
307  ],
308  'menu:login' => [
309  'Elgg\Menus\Login::registerRegistration' => [],
310  'Elgg\Menus\Login::registerResetPassword' => [],
311  ],
312  'menu:page' => [
313  'Elgg\Menus\Page::registerAdminPluginSettings' => [],
314  'Elgg\Menus\Page::registerUserSettings' => [],
315  'Elgg\Menus\Page::registerUserSettingsPlugins' => [],
316  ],
317  'menu:river' => [
318  'Elgg\Menus\River::registerDelete' => [],
319  ],
320  'menu:site' => [
321  'Elgg\Menus\Site::registerAdminConfiguredItems' => [],
322  ],
323  'menu:social' => [
324  'Elgg\Menus\Social::registerComments' => [],
325  ],
326  'menu:title' => [
327  'Elgg\Menus\Title::registerAvatarEdit' => [],
328  'Elgg\Menus\Title::registerEntityToTitle' => [
329  'priority' => 600,
330  ],
331  ],
332  'menu:topbar' => [
333  'Elgg\Menus\Topbar::registerUserLinks' => [],
334  'Elgg\Menus\Topbar::registerLogoutAs' => [],
335  'Elgg\Menus\Topbar::registerMaintenance' => [],
336  ],
337  'menu:user:unvalidated' => [
338  'Elgg\Menus\UserUnvalidated::register' => [],
339  ],
340  'menu:user_hover' => [
341  'Elgg\Menus\UserHover::registerAvatarEdit' => [],
342  'Elgg\Menus\UserHover::registerAdminActions' => [],
343  'Elgg\Menus\UserHover::registerLoginAs' => [],
344  ],
345  'menu:walled_garden' => [
346  'Elgg\Menus\WalledGarden::registerHome' => [],
347  ],
348  'menu:widget' => [
349  'Elgg\Menus\Widget::registerDelete' => [],
350  'Elgg\Menus\Widget::registerEdit' => [],
351  ],
352  'user' => [
353  'Elgg\Users\Validation::checkAdminValidation' => [
354  'priority' => 999, // allow others to also disable the user
355  ],
356  ],
357  ],
358  'response' => [
359  'action:register' => [
360  'Elgg\Users\Validation::setRegistrationForwardUrl' => [
361  'priority' => 999, // allow other to set forwar url first
362  ],
363  ],
364  ],
365  'sanitize' => [
366  'input' => [
367  \Elgg\Input\ValidateInputHandler::class => [
368  'priority' => 1,
369  ],
370  ],
371  ],
372  'search:fields' => [
373  'group' => [
374  \Elgg\Search\GroupSearchFieldsHandler::class => [],
375  \Elgg\Search\TagsSearchFieldsHandler::class => [],
376  ],
377  'object' => [
378  \Elgg\Search\ObjectSearchFieldsHandler::class => [],
379  \Elgg\Search\TagsSearchFieldsHandler::class => [],
380  ],
381  'user' => [
382  \Elgg\Search\UserSearchFieldsHandler::class => [],
383  \Elgg\Search\TagsSearchFieldsHandler::class => [],
384  ],
385  ],
386  'seeds' => [
387  'database' => [
388  '\Elgg\Database\Seeds\Users::register' => ['priority' => 1],
389  '\Elgg\Database\Seeds\Groups::register' => ['priority' => 2],
390  ],
391  ],
392  'send' => [
393  'notification:delayed_email' => [
394  \Elgg\Email\DelayedQueue\EnqueueHandler::class => [],
395  ],
396  'notification:email' => [
397  \Elgg\Notifications\SendEmailHandler::class => [],
398  ],
399  ],
400  'simplecache:generate' => [
401  'css' => [
402  \Elgg\Views\CalculateSRI::class => ['priority' => 999],
403  \Elgg\Views\PreProcessCssHandler::class => [],
404  \Elgg\Views\MinifyHandler::class => [],
405  ],
406  'js' => [
407  \Elgg\Views\CalculateSRI::class => ['priority' => 999],
408  \Elgg\Views\MinifyHandler::class => [],
409  ],
410  ],
411  'update:after' => [
412  'all' => [
413  \Elgg\Comments\SyncContainerAccessHandler::class => [
414  'priority' => 600,
415  ],
416  \Elgg\Notifications\MentionsEnqueueEventHandler::class => [],
417  ],
418  'group' => [
419  \Elgg\Icons\MoveIconsOnOwnerChangeHandler::class => [],
420  \Elgg\Icons\TouchIconsOnAccessChangeHandler::class => [],
421  ],
422  'object' => [
423  \Elgg\Icons\MoveIconsOnOwnerChangeHandler::class => [],
424  \Elgg\Icons\TouchIconsOnAccessChangeHandler::class => [],
425  ],
426  ],
427  'usersettings:save' => [
428  'user' => [
429  'Elgg\Users\Settings::setAdminValidationNotification' => [],
430  'Elgg\Users\Settings::setDefaultAccess' => [],
431  'Elgg\Users\Settings::setEmail' => [],
432  'Elgg\Users\Settings::setLanguage' => [],
433  'Elgg\Users\Settings::setName' => [],
434  'Elgg\Users\Settings::setPassword' => [
435  'priority' => 100, // this needs to be before email change, for security reasons
436  ],
437  'Elgg\Users\Settings::setUsername' => [],
438  ],
439  ],
440  'validate:after' => [
441  'user' => [
442  'Elgg\Users\Validation::notifyUserAfterValidation' => [],
443  'Elgg\Users\Validation::addRiverActivityAfterValidation' => [],
444  ],
445  ],
446  'view_vars' => [
447  'elements/forms/help' => [
448  \Elgg\Input\AddFileHelpTextHandler::class => [],
449  ],
450  'input/password' => [
451  \Elgg\Input\DisablePasswordAutocompleteHandler::class => [],
452  ],
453  'output/icon' => [
454  \Elgg\Icons\AddFontAwesomeClassesHandler::class => ['priority' => 100],
455  ],
456  'page/components/list' => [
457  'Elgg\Comments\Preloader::preload' => [],
458  ],
459  ],
460 ];