aboutsummaryrefslogtreecommitdiffstats
path: root/includes/skins/Hook
Commit message (Collapse)AuthorAgeFilesLines
...
* SkinTemplate: Allow modification of the footer directlyjdlrobson2020-05-131-0/+27
| | | | | | | | | | | | | | | | | | | | Historically skins like MobileFrontend and WhoIsWatching rely on the SkinTemplateOutputPageBeforeExec hook. I want to deprecate this and allow direct manipulation of the footer prior to rendering. The new hook is named SkinGetFooterLinks. The existing getFooterLinks method is modified. Given this is a new function, is protected and final and currently has no usages, this can be done safely. MobileFrontend: Id83ef2f2cba1dce940f89125b5cd26a29421ee48 Usage in Vector: I4e89beb96f6401ed7e51bafdf0aac408f5a2c42f Bug: T251817 Change-Id: Id258b1ec2ae7008fc4d586d0647a5131ec889fe6
* Hook interface type fixes, to fix Phan errorsTim Starling2020-05-052-2/+3
| | | | | | | | Phan flagged a lot of incorrect type hints when run against the call site migration patch. Bug: T240307 Change-Id: I698de5536446c241b200430198b21b72763b0c69
* Hook interface doc comment followupTim Starling2020-04-211-1/+1
| | | | | | Mostly just narrower array types. A handful of other errors fixed. Change-Id: Ied79d9e389867911bf83696dbb47f43305f8be7b
* docs: Hook interface doc comment reviewapaskulin2020-04-2125-126/+181
| | | | | | | | Edited doc comments for hook interfaces to improve consistency and add type hints. Bug: T246855 Change-Id: I38fa802463cd6f39bf5946dbbeb1b3ebaea604b2
* Automatically generated hook interfacesTim Starling2020-04-2025-0/+590
Add hook interfaces which were generated by a script which parses hooks.txt and identifies caller namespaces and directories. Hook interfaces are mostly placed in a Hook/ subdirectory relative to the caller location. When there are callers in multiple directories, a "primary" caller was manually selected. The exceptions to this are: * The source root, maintenance and tests, which use includes/Hook. Test hooks need to be autoloadable in a non-test request so that implementing test interfaces in a generic handler will not fail. * resources uses includes/resourceloader/Hook * The following third-level subdirectories had their hooks placed in the parent ../Hook: * includes/filerepo/file * includes/search/searchwidgets * includes/specials/forms * includes/specials/helpers * includes/specials/pagers Parameters marked as legacy references in hooks.txt are passed by value in the interfaces. Bug: T240307 Change-Id: I6efe2e7dd1f0c6a3d0f4d100a4c34e41f8428720