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\CleanupPersistentLoginHandler::class => [],
111  ],
112  'hourly' => [
113  \Elgg\Entity\RemoveDeletedEntitiesHandler::class => [],
114  ],
115  'minute' => [
116  \Elgg\Notifications\ProcessQueueCronHandler::class => ['priority' => 100],
117  ],
118  'weekly' => [
119  \Elgg\Email\DelayedQueue\CronHandler::class => [],
120  ],
121  ],
122  'delete' => [
123  'relationship' => [
124  \Elgg\Friends\RemoveFromAclHandler::class => [],
125  ],
126  ],
127  'diagnostics:report' => [
128  'system' => [
129  'Elgg\Diagnostics\Reports::getBasic' => ['priority' => 0],
130  'Elgg\Diagnostics\Reports::getSigs' => ['priority' => 1],
131  'Elgg\Diagnostics\Reports::getGlobals' => [],
132  'Elgg\Diagnostics\Reports::getPHPInfo' => [],
133  ],
134  ],
135  'elgg.data' => [
136  'page' => [
137  \Elgg\Javascript\SetLightboxConfigHandler::class => [],
138  ],
139  ],
140  'entity:favicon:sizes' => [
141  'site' => [
142  \Elgg\Icons\GetSiteFaviconSizesHandler::class => [],
143  ],
144  ],
145  'entity:header:sizes' => [
146  'all' => [
147  \Elgg\Icons\HeaderSizesHandler::class => [],
148  ],
149  ],
150  'entity:icon:file' => [
151  'user' => [
152  \Elgg\Icons\SetUserIconFileHandler::class => [],
153  ],
154  ],
155  'entity:url' => [
156  'object:widget' => [
157  \Elgg\Widgets\EntityUrlHandler::class => [],
158  ],
159  ],
160  'form:prepare:fields' => [
161  'admin/security/security_txt' => [
162  \Elgg\Forms\PrepareSecurityTxt::class => [],
163  ],
164  'all' => [
165  \Elgg\Forms\PrepareFields::class => ['priority' => 9999],
166  ],
167  ],
168  'head' => [
169  'page' => [
170  \Elgg\Page\AddFaviconLinksHandler::class => [],
171  \Elgg\Page\AddManifestLinkHandler::class => [],
172  \Elgg\Page\AddMetasHandler::class => ['priority' => 20],
173  \Elgg\Page\AddRssLinkHandler::class => ['priority' => 30],
174  \Elgg\Page\AddTitleHandler::class => ['priority' => 10],
175  ],
176  ],
177  'init' => [
178  'system' => [
179  'Elgg\Application\SystemEventHandlers::initEarly' => ['priority' => 0],
180  'Elgg\Application\SystemEventHandlers::init' => [],
181  'Elgg\Application\SystemEventHandlers::initLate' => ['priority' => 1000],
182  ],
183  ],
184  'login:before' => [
185  'user' => [
186  'Elgg\Users\Validation::preventUserLogin' => [
187  'priority' => 999, // allow others to throw exceptions earlier
188  ],
189  ],
190  ],
191  'make_admin' => [
192  'user' => [
193  \Elgg\Widgets\CreateAdminWidgetsHandler::class => [],
194  ],
195  ],
196  'output' => [
197  'page' => [
198  \Elgg\Debug\Profiler::class => ['priority' => 999],
199  ],
200  ],
201  'output:before' => [
202  'page' => [
203  \Elgg\Page\SetXFrameOptionsHeaderHandler::class => [],
204  ],
205  ],
206  'permissions_check' => [
207  'object' => [
208  \Elgg\Comments\EditPermissionsHandler::class => [],
209  ],
210  ],
211  'permissions_check:comment' => [
212  'object' => [
213  \Elgg\Comments\GroupMemberPermissionsHandler::class => ['priority' => 999],
214  ],
215  ],
216  'prepare' => [
217  'menu:admin_header' => [
218  'Elgg\Menus\AdminHeader::prepareAdminAdministerUsersChildren' => [],
219  ],
220  'menu:admin:users:bulk' => [
221  'Elgg\Menus\AdminUsersBulk::disableItems' => [],
222  ],
223  'menu:breadcrumbs' => [
224  '\Elgg\Menus\Breadcrumbs::addHomeItem' => ['priority' => 10000],
225  '\Elgg\Menus\Breadcrumbs::cleanupBreadcrumbs' => ['priority' => 9999],
226  ],
227  'menu:site' => [
228  'Elgg\Menus\Site::reorderItems' => [
229  'priority' => 999,
230  ],
231  ],
232  'system:email' => [
233  \Elgg\Email\DefaultMessageIdHeaderHandler::class => ['priority' => 1],
234  \Elgg\Email\ThreadHeadersHandler::class => [],
235  ],
236  ],
237  'public_pages' => [
238  'walled_garden' => [
239  \Elgg\WalledGarden\ExtendPublicPagesHandler::class => [],
240  ],
241  ],
242  'ready' => [
243  'system' => [
244  '\Elgg\Application\SystemEventHandlers::ready' => [],
245  ],
246  ],
247  'register' => [
248  'menu:admin_control_panel' => [
249  'Elgg\Menus\AdminControlPanel::register' => [],
250  ],
251  'menu:admin_header' => [
252  'Elgg\Menus\AdminHeader::register' => [],
253  'Elgg\Menus\AdminHeader::registerMaintenance' => [],
254  'Elgg\Menus\AdminHeader::registerAdminAdminister' => [],
255  'Elgg\Menus\AdminHeader::registerAdminConfigure' => [],
256  'Elgg\Menus\AdminHeader::registerAdminDefaultWidgets' => [],
257  'Elgg\Menus\AdminHeader::registerAdminInformation' => [],
258  'Elgg\Menus\AdminHeader::registerAdminUtilities' => [],
259  ],
260  'menu:admin_footer' => [
261  'Elgg\Menus\AdminFooter::registerHelpResources' => [],
262  ],
263  'menu:admin:users:bulk' => [
264  'Elgg\Menus\AdminUsersBulk::registerActions' => [],
265  ],
266  'menu:annotation' => [
267  'Elgg\Menus\Annotation::registerDelete' => [],
268  ],
269  'menu:entity' => [
270  'Elgg\Menus\Entity::registerDelete' => [],
271  'Elgg\Menus\Entity::registerEdit' => [],
272  'Elgg\Menus\Entity::registerTrash' => ['priority' => 501], // needs to be after registerDelete
273  'Elgg\Menus\Entity::registerUserHoverAdminSection' => [],
274  'Elgg\Menus\UserHover::registerLoginAs' => [],
275  ],
276  'menu:entity:object:comment' => [
277  'Elgg\Menus\Entity::registerComment' => [],
278  ],
279  'menu:entity:object:elgg_upgrade' => [
280  'Elgg\Menus\Entity::registerUpgrade' => [],
281  ],
282  'menu:entity:object:plugin' => [
283  'Elgg\Menus\Entity::registerPlugin' => [],
284  ],
285  'menu:entity:trash' => [
286  'Elgg\Menus\Entity::registerDelete' => [],
287  'Elgg\Menus\EntityTrash::registerRestore' => [],
288  ],
289  'menu:entity_navigation' => [
290  'Elgg\Menus\EntityNavigation::registerPreviousNext' => [],
291  ],
292  'menu:filter:admin/upgrades' => [
293  'Elgg\Menus\Filter::registerAdminUpgrades' => [],
294  ],
295  'menu:filter:admin/users' => [
296  'Elgg\Menus\Filter::registerAdminUsers' => [],
297  'Elgg\Menus\FilterSortItems::registerTimeCreatedSorting' => [],
298  'Elgg\Menus\FilterSortItems::registerNameSorting' => [],
299  'Elgg\Menus\FilterSortItems::registerSortingDropdown' => ['priority' => 9999],
300  ],
301  'menu:filter:filter' => [
302  'Elgg\Menus\Filter::registerFilterTabs' => ['priority' => 1],
303  ],
304  'menu:filter:profile/edit' => [
305  'Elgg\Menus\Filter::registerAvatarEdit' => [],
306  ],
307  'menu:filter:settings/notifications' => [
308  'Elgg\Menus\Filter::registerNotificationSettings' => [],
309  ],
310  'menu:footer' => [
311  'Elgg\Menus\Footer::registerRSS' => [],
312  'Elgg\Menus\Footer::registerElggBranding' => [],
313  ],
314  'menu:login' => [
315  'Elgg\Menus\Login::registerRegistration' => [],
316  'Elgg\Menus\Login::registerResetPassword' => [],
317  ],
318  'menu:page' => [
319  'Elgg\Menus\Page::registerAdminPluginSettings' => [],
320  'Elgg\Menus\Page::registerUserSettings' => [],
321  'Elgg\Menus\Page::registerUserSettingsPlugins' => [],
322  ],
323  'menu:river' => [
324  'Elgg\Menus\River::registerDelete' => [],
325  ],
326  'menu:site' => [
327  'Elgg\Menus\Site::registerAdminConfiguredItems' => [],
328  ],
329  'menu:social' => [
330  'Elgg\Menus\Social::registerComments' => [],
331  ],
332  'menu:title' => [
333  'Elgg\Menus\Title::registerAvatarEdit' => [],
334  'Elgg\Menus\Title::registerEntityToTitle' => [
335  'priority' => 600,
336  ],
337  ],
338  'menu:topbar' => [
339  'Elgg\Menus\Topbar::registerUserLinks' => [],
340  'Elgg\Menus\Topbar::registerLogoutAs' => [],
341  'Elgg\Menus\Topbar::registerMaintenance' => [],
342  ],
343  'menu:user:unvalidated' => [
344  'Elgg\Menus\UserUnvalidated::register' => [],
345  ],
346  'menu:user_hover' => [
347  'Elgg\Menus\UserHover::registerAvatarEdit' => [],
348  'Elgg\Menus\UserHover::registerAdminActions' => [],
349  'Elgg\Menus\UserHover::registerLoginAs' => [],
350  ],
351  'menu:walled_garden' => [
352  'Elgg\Menus\WalledGarden::registerHome' => [],
353  ],
354  'menu:widget' => [
355  'Elgg\Menus\Widget::registerDelete' => [],
356  'Elgg\Menus\Widget::registerEdit' => [],
357  ],
358  'user' => [
359  'Elgg\Users\Validation::checkAdminValidation' => [
360  'priority' => 999, // allow others to also disable the user
361  ],
362  ],
363  ],
364  'response' => [
365  'action:register' => [
366  'Elgg\Users\Validation::setRegistrationForwardUrl' => [
367  'priority' => 999, // allow other to set forwar url first
368  ],
369  ],
370  ],
371  'sanitize' => [
372  'input' => [
373  \Elgg\Input\ValidateInputHandler::class => [
374  'priority' => 1,
375  ],
376  ],
377  ],
378  'search:fields' => [
379  'group' => [
380  \Elgg\Search\GroupSearchFieldsHandler::class => [],
381  \Elgg\Search\TagsSearchFieldsHandler::class => [],
382  ],
383  'object' => [
384  \Elgg\Search\ObjectSearchFieldsHandler::class => [],
385  \Elgg\Search\TagsSearchFieldsHandler::class => [],
386  ],
387  'user' => [
388  \Elgg\Search\UserSearchFieldsHandler::class => [],
389  \Elgg\Search\TagsSearchFieldsHandler::class => [],
390  ],
391  ],
392  'seeds' => [
393  'database' => [
394  '\Elgg\Database\Seeds\Users::register' => ['priority' => 1],
395  '\Elgg\Database\Seeds\Groups::register' => ['priority' => 2],
396  ],
397  ],
398  'send' => [
399  'notification:delayed_email' => [
400  \Elgg\Email\DelayedQueue\EnqueueHandler::class => [],
401  ],
402  'notification:email' => [
403  \Elgg\Notifications\SendEmailHandler::class => [],
404  ],
405  ],
406  'simplecache:generate' => [
407  'css' => [
408  \Elgg\Views\CalculateSRI::class => ['priority' => 999],
409  \Elgg\Views\PreProcessCssHandler::class => [],
410  \Elgg\Views\MinifyHandler::class => [],
411  ],
412  'js' => [
413  \Elgg\Views\CalculateSRI::class => ['priority' => 999],
414  \Elgg\Views\MinifyHandler::class => [],
415  ],
416  ],
417  'update:after' => [
418  'all' => [
419  \Elgg\Comments\SyncContainerAccessHandler::class => [
420  'priority' => 600,
421  ],
422  \Elgg\Notifications\MentionsEnqueueEventHandler::class => [],
423  ],
424  'group' => [
425  \Elgg\Icons\MoveIconsOnOwnerChangeHandler::class => [],
426  \Elgg\Icons\TouchIconsOnAccessChangeHandler::class => [],
427  ],
428  'object' => [
429  \Elgg\Icons\MoveIconsOnOwnerChangeHandler::class => [],
430  \Elgg\Icons\TouchIconsOnAccessChangeHandler::class => [],
431  ],
432  ],
433  'usersettings:save' => [
434  'user' => [
435  'Elgg\Users\Settings::setDefaultAccess' => [],
436  'Elgg\Users\Settings::setEmail' => [],
437  'Elgg\Users\Settings::setLanguage' => [],
438  'Elgg\Users\Settings::setName' => [],
439  'Elgg\Users\Settings::setPassword' => [
440  'priority' => 100, // this needs to be before email change, for security reasons
441  ],
442  'Elgg\Users\Settings::setUsername' => [],
443  ],
444  ],
445  'validate:after' => [
446  'user' => [
447  'Elgg\Users\Validation::addRiverActivityAfterValidation' => [],
448  ],
449  ],
450  'view_vars' => [
451  'elements/forms/help' => [
452  \Elgg\Input\AddFileHelpTextHandler::class => [],
453  ],
454  'input/password' => [
455  \Elgg\Input\DisablePasswordAutocompleteHandler::class => [],
456  ],
457  'output/icon' => [
458  \Elgg\Icons\AddFontAwesomeClassesHandler::class => ['priority' => 100],
459  ],
460  'page/components/list' => [
461  'Elgg\Comments\Preloader::preload' => [],
462  ],
463  ],
464 ];