MediaWiki  master
docs/hooks.txt File Reference

Typedefs

using $result = The index of the header message $result[1]=The index of the body text message $result[2 through n]=Parameters passed to body text message. Please note the header message cannot receive/use parameters. 'ImportHandleLogItemXMLTag':When parsing a XML tag in a log item. Return false to stop further processing of the tag $reader:XMLReader object $logInfo:Array of information 'ImportHandlePageXMLTag':When parsing a XML tag in a page. Return false to stop further processing of the tag $reader:XMLReader object & $pageInfo:Array of information 'ImportHandleRevisionXMLTag':When parsing a XML tag in a page revision. Return false to stop further processing of the tag $reader:XMLReader object $pageInfo:Array of page information $revisionInfo:Array of revision information 'ImportHandleToplevelXMLTag':When parsing a top level XML tag. Return false to stop further processing of the tag $reader:XMLReader object 'ImportHandleUnknownUser':When a user doesn 't exist locally, this hook is called to give extensions an opportunity to auto-create it. If the auto-creation is successful, return false. $name:User name 'ImportHandleUploadXMLTag':When parsing a XML tag in a file upload. Return false to stop further processing of the tag $reader:XMLReader object $revisionInfo:Array of information 'ImportLogInterwikiLink':Hook to change the interwiki link used in log entries and edit summaries for transwiki imports. & $fullInterwikiPrefix:Interwiki prefix, may contain colons. & $pageTitle:String that contains page title. 'ImportSources':Called when reading from the $wgImportSources configuration variable. Can be used to lazy-load the import sources list. & $importSources:The value of $wgImportSources. Modify as necessary. See the comment in DefaultSettings.php for the detail of how to structure this array. 'InfoAction':When building information to display on the action=info page. $context:IContextSource object & $pageInfo:Array of information 'InitializeArticleMaybeRedirect':MediaWiki check to see if title is a redirect. & $title:Title object for the current page & $request:WebRequest & $ignoreRedirect:boolean to skip redirect check & $target:Title/string of redirect target & $article:Article object 'InternalParseBeforeLinks':during Parser 's internalParse method before links but after nowiki/noinclude/includeonly/onlyinclude and other processings. & $parser:Parser object & $text:string containing partially parsed text & $stripState:Parser 's internal StripState object 'InternalParseBeforeSanitize':during Parser 's internalParse method just before the parser removes unwanted/dangerous HTML tags and after nowiki/noinclude/includeonly/onlyinclude and other processings. Ideal for syntax-extensions after template/parser function execution which respect nowiki and HTML-comments. & $parser:Parser object & $text:string containing partially parsed text & $stripState:Parser 's internal StripState object 'InterwikiLoadPrefix':When resolving if a given prefix is an interwiki or not. Return true without providing an interwiki to continue interwiki search. $prefix:interwiki prefix we are looking for. & $iwData:output array describing the interwiki with keys iw_url, iw_local, iw_trans and optionally iw_api and iw_wikiid. 'InvalidateEmailComplete':Called after a user 's email has been invalidated successfully. $user:user(object) whose email is being invalidated 'IRCLineURL':When constructing the URL to use in an IRC notification. Callee may modify $url and $query, URL will be constructed as $url . $query & $url:URL to index.php & $query:Query string $rc:RecentChange object that triggered url generation 'IsFileCacheable':Override the result of Article::isFileCacheable()(if true) & $article:article(object) being checked 'IsTrustedProxy':Override the result of IP::isTrustedProxy() & $ip:IP being check & $result:Change this value to override the result of IP::isTrustedProxy() 'IsUploadAllowedFromUrl':Override the result of UploadFromUrl::isAllowedUrl() $url:URL used to upload from & $allowed:Boolean indicating if uploading is allowed for given URL 'isValidEmailAddr':Override the result of Sanitizer::validateEmail(), for instance to return false if the domain name doesn 't match your organization. $addr:The e-mail address entered by the user & $result:Set this and return false to override the internal checks 'isValidPassword':Override the result of User::isValidPassword() $password:The password entered by the user & $result:Set this and return false to override the internal checks $user:User the password is being validated for 'Language::getMessagesFileName':$code:The language code or the language we 're looking for a messages file for & $file:The messages file path, you can override this to change the location. 'LanguageGetNamespaces':Provide custom ordering for namespaces or remove namespaces. Do not use this hook to add namespaces. Use CanonicalNamespaces for that. & $namespaces:Array of namespaces indexed by their numbers 'LanguageGetTranslatedLanguageNames':Provide translated language names. & $names:array of language code=> language name $code:language of the preferred translations 'LanguageLinks':Manipulate a page 's language links. This is called in various places to allow extensions to define the effective language links for a page. $title:The page 's Title. & $links:Array with elements of the form "language:title" in the order that they will be output. & $linkFlags:Associative array mapping prefixed links to arrays of flags. Currently unused, but planned to provide support for marking individual language links in the UI, e.g. for featured articles. 'LanguageSelector':Hook to change the language selector available on a page. $out:The output page. $cssClassName:CSS class name of the language selector. 'LinkBegin':DEPRECATED since 1.28! Use HtmlPageLinkRendererBegin instead. Used when generating internal and interwiki links in Linker::link(), before processing starts. Return false to skip default processing and return $ret. See documentation for Linker::link() for details on the expected meanings of parameters. $skin:the Skin object $target:the Title that the link is pointing to & $html:the contents that the< a > tag should have(raw HTML)
 
using $status = Status::newGood()` to allow deletion, and then `return false` from the hook function. Ensure you consume the 'ChangeTagAfterDelete' hook to carry out custom deletion actions. $tag:name of the tag $user:user initiating the action & $status:Status object. See above. 'ChangeTagsListActive':Allows you to nominate which of the tags your extension uses are in active use. & $tags:list of all active tags. Append to this array. 'ChangeTagsAfterUpdateTags':Called after tags have been updated with the ChangeTags::updateTags function. Params:$addedTags:tags effectively added in the update $removedTags:tags effectively removed in the update $prevTags:tags that were present prior to the update $rc_id:recentchanges table id $rev_id:revision table id $log_id:logging table id $params:tag params $rc:RecentChange being tagged when the tagging accompanies the action, or null $user:User who performed the tagging when the tagging is subsequent to the action, or null 'ChangeTagsAllowedAdd':Called when checking if a user can add tags to a change. & $allowedTags:List of all the tags the user is allowed to add. Any tags the user wants to add( $addTags) that are not in this array will cause it to fail. You may add or remove tags to this array as required. $addTags:List of tags user intends to add. $user:User who is adding the tags. 'ChangeUserGroups':Called before user groups are changed. $performer:The User who will perform the change $user:The User whose groups will be changed & $add:The groups that will be added & $remove:The groups that will be removed 'Collation::factory':Called if $wgCategoryCollation is an unknown collation. $collationName:Name of the collation in question & $collationObject:Null. Replace with a subclass of the Collation class that implements the collation given in $collationName. 'ConfirmEmailComplete':Called after a user 's email has been confirmed successfully. $user:user(object) whose email is being confirmed 'ContentAlterParserOutput':Modify parser output for a given content object. Called by Content::getParserOutput after parsing has finished. Can be used for changes that depend on the result of the parsing but have to be done before LinksUpdate is called(such as adding tracking categories based on the rendered HTML). $content:The Content to render $title:Title of the page, as context $parserOutput:ParserOutput to manipulate 'ContentGetParserOutput':Customize parser output for a given content object, called by AbstractContent::getParserOutput. May be used to override the normal model-specific rendering of page content. $content:The Content to render $title:Title of the page, as context $revId:The revision ID, as context $options:ParserOptions for rendering. To avoid confusing the parser cache, the output can only depend on parameters provided to this hook function, not on global state. $generateHtml:boolean, indicating whether full HTML should be generated. If false, generation of HTML may be skipped, but other information should still be present in the ParserOutput object. & $output:ParserOutput, to manipulate or replace 'ContentHandlerDefaultModelFor':Called when the default content model is determined for a given title. May be used to assign a different model for that title. $title:the Title in question & $model:the model name. Use with CONTENT_MODEL_XXX constants. 'ContentHandlerForModelID':Called when a ContentHandler is requested for a given content model name, but no entry for that model exists in $wgContentHandlers. Note:if your extension implements additional models via this hook, please use GetContentModels hook to make them known to core. $modeName:the requested content model name & $handler:set this to a ContentHandler object, if desired. 'ContentModelCanBeUsedOn':Called to determine whether that content model can be used on a given page. This is especially useful to prevent some content models to be used in some special location. $contentModel:ID of the content model in question $title:the Title in question. & $ok:Output parameter, whether it is OK to use $contentModel on $title. Handler functions that modify $ok should generally return false to prevent further hooks from further modifying $ok. 'ContribsPager::getQueryInfo':Before the contributions query is about to run & $pager:Pager object for contributions & $queryInfo:The query for the contribs Pager 'ContribsPager::reallyDoQuery':Called before really executing the query for My Contributions & $data:an array of results of all contribs queries $pager:The ContribsPager object hooked into $offset:Index offset, inclusive $limit:Exact query limit $descending:Query direction, false for ascending, true for descending 'ContributionsLineEnding':Called before a contributions HTML line is finished $page:SpecialPage object for contributions & $ret:the HTML line $row:the DB row for this line & $classes:the classes to add to the surrounding< li > & $attribs:associative array of other HTML attributes for the< li > element. Currently only data attributes reserved to MediaWiki are allowed(see Sanitizer::isReservedDataAttribute). 'ContributionsToolLinks':Change tool links above Special:Contributions $id:User identifier $title:User page title & $tools:Array of tool links $specialPage:SpecialPage instance for context and services. Can be either SpecialContributions or DeletedContributionsPage. Extensions should type hint against a generic SpecialPage though. 'ConvertContent':Called by AbstractContent::convert when a conversion to another content model is requested. Handler functions that modify $result should generally return false to disable further attempts at conversion. $content:The Content object to be converted. $toModel:The ID of the content model to convert to. $lossy:boolean indicating whether lossy conversion is allowed. & $result:Output parameter, in case the handler function wants to provide a converted Content object. Note that $result->getContentModel() must return $toModel. 'ContentSecurityPolicyDefaultSource':Modify the allowed CSP load sources. This affects all directives except for the script directive. If you want to add a script source, see ContentSecurityPolicyScriptSource hook. & $defaultSrc:Array of Content-Security-Policy allowed sources $policyConfig:Current configuration for the Content-Security-Policy header $mode:ContentSecurityPolicy::REPORT_ONLY_MODE or ContentSecurityPolicy::FULL_MODE depending on type of header 'ContentSecurityPolicyDirectives':Modify the content security policy directives. Use this only if ContentSecurityPolicyDefaultSource and ContentSecurityPolicyScriptSource do not meet your needs. & $directives:Array of CSP directives $policyConfig:Current configuration for the CSP header $mode:ContentSecurityPolicy::REPORT_ONLY_MODE or ContentSecurityPolicy::FULL_MODE depending on type of header 'ContentSecurityPolicyScriptSource':Modify the allowed CSP script sources. Note that you also have to use ContentSecurityPolicyDefaultSource if you want non-script sources to be loaded from whatever you add. & $scriptSrc:Array of CSP directives $policyConfig:Current configuration for the CSP header $mode:ContentSecurityPolicy::REPORT_ONLY_MODE or ContentSecurityPolicy::FULL_MODE depending on type of header 'CustomEditor':When invoking the page editor Return true to allow the normal editor to be used, or false if implementing a custom editor, e.g. for a special namespace, etc. $article:Article being edited $user:User performing the edit 'DatabaseOraclePostInit':Called after initialising an Oracle database $db:the DatabaseOracle object 'DeletedContribsPager::reallyDoQuery':Called before really executing the query for Special:DeletedContributions Similar to ContribsPager::reallyDoQuery & $data:an array of results of all contribs queries $pager:The DeletedContribsPager object hooked into $offset:Index offset, inclusive $limit:Exact query limit $descending:Query direction, false for ascending, true for descending 'DeletedContributionsLineEnding':Called before a DeletedContributions HTML line is finished. Similar to ContributionsLineEnding $page:SpecialPage object for DeletedContributions & $ret:the HTML line $row:the DB row for this line & $classes:the classes to add to the surrounding< li > & $attribs:associative array of other HTML attributes for the< li > element. Currently only data attributes reserved to MediaWiki are allowed(see Sanitizer::isReservedDataAttribute). 'DeleteUnknownPreferences':Called by the cleanupPreferences.php maintenance script to build a WHERE clause with which to delete preferences that are not known about. This hook is used by extensions that have dynamically-named preferences that should not be deleted in the usual cleanup process. For example, the Gadgets extension creates preferences prefixed with 'gadget-', and so anything with that prefix is excluded from the deletion. &where:An array that will be passed as the $cond parameter to IDatabase::select() to determine what will be deleted from the user_properties table. $db:The IDatabase object, useful for accessing $db->buildLike() etc. 'DifferenceEngineAfterLoadNewText':called in DifferenceEngine::loadNewText() after the new revision 's content has been loaded into the class member variable $differenceEngine->mNewContent but before returning true from this function. $differenceEngine:DifferenceEngine object 'DifferenceEngineLoadTextAfterNewContentIsLoaded':called in DifferenceEngine::loadText() after the new revision 's content has been loaded into the class member variable $differenceEngine->mNewContent but before checking if the variable 's value is null. This hook can be used to inject content into said class member variable. $differenceEngine:DifferenceEngine object 'DifferenceEngineMarkPatrolledLink':Allows extensions to change the "mark as patrolled" link which is shown both on the diff header as well as on the bottom of a page, usually wrapped in a span element which has class="patrollink". $differenceEngine:DifferenceEngine object & $markAsPatrolledLink:The "mark as patrolled" link HTML(string) $rcid:Recent change ID(rc_id) for this change(int) 'DifferenceEngineMarkPatrolledRCID':Allows extensions to possibly change the rcid parameter. For example the rcid might be set to zero due to the user being the same as the performer of the change but an extension might still want to show it under certain conditions. & $rcid:rc_id(int) of the change or 0 $differenceEngine:DifferenceEngine object $change:RecentChange object $user:User object representing the current user 'DifferenceEngineNewHeader':Allows extensions to change the $newHeader variable, which contains information about the new revision, such as the revision 's author, whether the revision was marked as a minor edit or not, etc. $differenceEngine:DifferenceEngine object & $newHeader:The string containing the various #mw-diff-otitle[1-5] divs, which include things like revision author info, revision comment, RevisionDelete link and more $formattedRevisionTools:Array containing revision tools, some of which may have been injected with the DiffRevisionTools hook $nextlink:String containing the link to the next revision(if any)
 
using myext.tests = ['script'=> 'extension/myext/tests.js', 'dependencies'=>< any module dependency you might have >]
 

Functions

for adding new MIME info to the list Use $mimeMagic addExtraTypes ( $stringOfTypes)
 
the other converts the title to all uppercase letters in MediaWiki we would handle this as follows (note:not real code, here)
 
this hook is for auditing only RecentChangesLinked and Watchlist Do not use this to implement individual filters if they are compatible with the ChangesListFilter and ChangesListFilterGroup structure use sub classes of those in conjunction with the ChangesListSpecialPageStructuredFilters hook This hook can be used to implement filters that do not implement that or custom behavior that is not an individual filter e g Watchlist and Watchlist you will want to construct new ChangesListBooleanFilter or ChangesListStringOptionsFilter objects When constructing you specify which group they belong to You can reuse existing groups (accessed through $special->getFilterGroup)
 
 if ( $wgReverseTitle)
 
the value of this variable comes from LanguageConverter indexed by page_id indexed by prefixed DB keys on which the links will be shown can modify can modify can modify this should be populated with an alert message to that effect to be fed to an HTMLForm object and populate $result with the reason in the form of [messagename, param1, param2,...] or a MessageSpecifier instance (you might want to use ApiMessage to provide machine-readable details for the API). For consistency
 
function ldapLogin ( $username, $password)
 
Using a hook running we can avoid having all this option specific stuff in our mainline code Using the function We ve cleaned up the code here by removing clumps of infrequently used code and moving them off somewhere else It s much easier for someone working with this code to see what s _really_ going and make changes or fix bugs In we can take all the code that deals with the little used title reversing options (say) and put it in one place. Instead of having little title-reversing if-blocks spread all over the codebase in showAnArticle
 
this hook is for auditing only RecentChangesLinked and Watchlist Do not use this to implement individual filters if they are compatible with the ChangesListFilter and ChangesListFilterGroup structure use sub classes of those in conjunction with the ChangesListSpecialPageStructuredFilters hook This hook can be used to implement filters that do not implement that or custom behavior that is not an individual filter e g Watchlist and Watchlist you will want to construct new ChangesListBooleanFilter or ChangesListStringOptionsFilter objects When constructing you specify which group they belong to You can reuse existing or create your own (ChangesListBooleanFilterGroup or ChangesListStringOptionsFilterGroup). If you create new groups
 
either a unescaped string or a HtmlArmor object after in associative array form externallinks including delete and has completed for all link tables whether this was an auto creation use $formDescriptor instead default is conds Array Extra conditions for the query (e.g. "log_action != 'revision'") - showIfEmpty boolean Set to false if you don 't want any output in case the loglist is empty if set to true(default)
 
processing should stop and the error should be shown to the user if you wanted to authenticate users to a custom system (LDAP, another PHP program, whatever)
 
Returning false makes less sense for events where the action is and will normally be ignored Note that none of the examples made use of create_function() as a way to attach a function to a hook. This is known to cause problems(notably with Special this is a necessary inconvenience to make it possible to pass reference values (that can be changed) into the hook code. Also note that earlier versions of wfRunHooks took a variable number of arguments
 
either a unescaped string or a HtmlArmor object after in associative array form externallinks including delete and has completed for all link tables whether this was an auto creation use $formDescriptor instead default is conds Array Extra conditions for the No matching items in log is displayed if loglist is empty msgKey Array If you want a nice box with a set this to the key of the message First element is the message additional optional elements are parameters for the key that are processed with wfMessage () -> params() ->parseAsBlock() - offset Set to overwrite offset parameter in $wgRequest set to '' to unset offset - wrap String Wrap the message in html(usually something like "&lt
 

Variables

return true to allow those checks to and false if checking is done remove or add to the links of a group of changes in EnhancedChangesList Hook subscribers can return false to omit this line from recentchanges use this to change the tables headers change it to an object instance and return false override the list derivative used the name of the old file$article
 
null means default in associative array with keys and values unescaped Should be merged with default with a value of false meaning to suppress the attribute in associative array with keys and values unescaped noclasses just before the function returns a value If you return an< a > element with HTML attributes $attribs and contents $html will be returned If you return $ret will be returned and may include noclasses after processing$attribs
 
return true to allow those checks to and false if checking is done remove or add to the links of a group of changes in EnhancedChangesList Hook subscribers can return false to omit this line from recentchanges use this to change the tables headers change it to an object instance and return false override the list derivative used the name of the old file when set the default code will be skipped true if there is text before this autocomment $auto
 
return true to allow those checks to and false if checking is done remove or add to the links of a group of changes in EnhancedChangesList Hook subscribers can return false to omit this line from recentchanges $changesList
 
this hook is for auditing only or null if authentication failed before getting that far or null if we can t even determine that probably a stub it is not rendered in wiki pages or galleries in category pages allow injecting custom HTML after the section Any uses of the hook need to handle escaping see BaseTemplate::getToolbox and BaseTemplate::makeListItem for details on the format of individual items inside of this array or by returning and letting standard HTTP rendering take place modifiable or by returning false and taking over the output modifiable & $code
 
the value of this variable comes from LanguageConverter indexed by page_id & $colours
 
the value of this variable comes from LanguageConverter indexed by page_id indexed by prefixed DB keys on which the links will be shown can modify can modify can modify this should be populated with an alert message to that effect to be fed to an HTMLForm object $context
 
null means default$customAttribs
 
null for the local wiki Added should default to null in handler for backwards compatibility add a value to it if you want to add a cookie that have to vary cache options can modify as strings Extensions should add to this list prev or next refreshes the diff cache allow viewing deleted revs & $differenceEngine
 
div flags Integer display flags(NO_ACTION_LINK, NO_EXTRA_USER_LINKS) 'LogException' returning false will NOT prevent logging $e
 
passed in as a query string parameter to the various URLs constructed here(i.e. $prevlink) $ldel you ll need to handle error etc yourself modifying $error and returning true will cause the contents of $error to be echoed at the top of the edit form as wikitext Return true without altering $error to allow the edit to proceed & $editor
 
the value to return A Title object or null for latest all implement SearchIndexField $engine
 
return true to allow those checks to and false if checking is done remove or add to the links of a group of changes in EnhancedChangesList Hook subscribers can return false to omit this line from recentchanges use this to change the tables headers & $extTypes
 
either a unescaped string or a HtmlArmor object after in associative array form externallinks including delete and has completed for all link tables whether this was an auto creation use $formDescriptor instead & $formDescriptor
 
this hook is for auditing only or null if authentication failed before getting that far or null if we can t even determine that probably a stub it is not rendered in wiki pages or galleries in category pages allow injecting custom HTML after the section Any uses of the hook need to handle escaping see BaseTemplate::getToolbox and BaseTemplate::makeListItem for details on the format of individual items inside of this array or by returning and letting standard HTTP rendering take place modifiable or by returning false and taking over the output modifiable modifiable after all normalizations have been except for the $wgMaxImageArea check set to true or false to override the $wgMaxImageArea check result gives extension the possibility to transform it themselves $handler
 
see documentation in includes Linker php for Linker::makeImageLink$handlerParams
 
null means default in associative array with keys and values unescaped Should be merged with default with a value of false meaning to suppress the attribute in associative array with keys and values unescaped noclasses just before the function returns a value If you return an< a > element with HTML attributes $attribs and contents $html will be returned If you return $ret will be returned and may include noclasses & $html
 
this hook is for auditing only or null if authentication failed before getting that far or null if we can t even determine that probably a stub it is not rendered in wiki pages or galleries in category pages allow injecting custom HTML after the section Any uses of the hook need to handle escaping see BaseTemplate::getToolbox and BaseTemplate::makeListItem for details on the format of individual items inside of this array or by returning and letting standard HTTP rendering take place modifiable or by returning false and taking over the output modifiable modifiable after all normalizations have been except for the $wgMaxImageArea check $image
 
processing should stop and the error should be shown to the user if you wanted to authenticate users to a custom you could $ldapServer
 
usually copyright or history_copyright This message must be in HTML not wikitext & $link
 
null means default in associative array with keys and values unescaped Should be merged with default with a value of false meaning to suppress the attribute in associative array with keys and values unescaped noclasses just before the function returns a value If you return an< a > element with HTML attributes $attribs and contents $html will be returned If you return $ret will be returned and may include noclasses after processing after in associative array form before processing starts Return false to skip default processing and return $ret $linkRenderer
 
either a unescaped string or a HtmlArmor object after in associative array form externallinks $linksUpdate
 
namespace are movable Hooks may change this value to override the return value of MWNamespace::isMovable(). 'NewDifferenceEngine' if it s text intended for display in a monospaced font $localize
 
static configuration should be added through ResourceLoaderGetConfigVars instead can be used to get the real title e g db for database replication lag or jobqueue for job queue size converted to pseudo seconds It is possible to add more fields and they will be returned to the user in the API response after the basic globals have been set but before ordinary actions take place or wrap services the preferred way to define a new service is the $wgServiceWiringFiles array change it to the message you want to define you are encouraged to submit patches to MediaWiki s core to add new MIME types to mime types $mimeMagic
 
Allows to change the fields on the form that will be generated $name
 
namespace and then decline to actually register it$namespaces
 
also included in $newHeader if any $newminor
 
the value of this variable comes from LanguageConverter indexed by page_id indexed by prefixed DB keys on which the links will be shown can modify can modify can modify this should be populated with an alert message to that effect $newtalks
 
passed in as a query string parameter to the various URLs constructed here(i.e. $nextlink) $rdel also included in $oldHeader $oldminor
 
null means default in associative array with keys and values unescaped Should be merged with default with a value of false meaning to suppress the attribute in associative array with keys and values unescaped & $options
 
this hook is for auditing only or null if authentication failed before getting that far or null if we can t even determine that probably a stub it is not rendered in wiki pages or galleries in category pages allow injecting custom HTML after the section Any uses of the hook need to handle escaping see BaseTemplate::getToolbox and BaseTemplate::makeListItem for details on the format of individual items inside of this array or by returning and letting standard HTTP rendering take place modifiable or by returning false and taking over the output $out
 
static configuration should be added through ResourceLoaderGetConfigVars instead can be used to get the real title e g db for database replication lag or jobqueue for job queue size converted to pseudo seconds It is possible to add more fields and they will be returned to the user in the API response after the basic globals have been set but before ordinary actions take place $output
 
see documentation in includes Linker php for Linker::makeImageLink or false for current used if you return false $parser
 
return true to allow those checks to and false if checking is done remove or add to the links of a group of changes in EnhancedChangesList Hook subscribers can return false to omit this line from recentchanges use this to change the tables headers change it to an object instance and return false override the list derivative used the name of the old file when set the default code will be skipped $pre
 
null for the local wiki Added should default to null in handler for backwards compatibility add a value to it if you want to add a cookie that have to vary cache options can modify $query
 
null for the local wiki Added should default to null in handler for backwards compatibility add a value to it if you want to add a cookie that have to vary cache options can modify as strings Extensions should add to this list prev or next $refreshCache
 
this hook is for auditing only $req
 
do that in ParserLimitReportFormat instead use this to modify the parameters of the image all existing parser cache entries will be invalid To avoid you ll need to handle that somehow(e.g. with the RejectParserCacheValue hook) because MediaWiki won 't do it for you. & $defaults also a ContextSource after deleting those rows but within the same transaction you ll probably need to make sure the header is varied on $request
 
Allows to change the fields on the form that will be generated are created Can be used to omit specific feeds from being outputted You must not use this hook to add use OutputPage::addFeedLink() instead. & $feedLinks hooks can tweak the array to change how login etc forms should look $requests
 
namespace and then decline to actually register it file or subcat $res
 
do that in ParserLimitReportFormat instead use this to modify the parameters of the image all existing parser cache entries will be invalid To avoid you ll need to handle that somehow(e.g. with the RejectParserCacheValue hook) because MediaWiki won 't do it for you. & $defaults also a ContextSource after deleting those rows but within the same transaction you ll probably need to make sure the header is varied on and they can depend only on the ResourceLoaderContext such as when responding to a resource loader request or generating HTML output & $resourceLoader
 
For QUnit the mediawiki tests qunit testrunner dependency will be added to any module & $ResourceLoader
 
this hook is for auditing only $response
 
null means default in associative array with keys and values unescaped Should be merged with default with a value of false meaning to suppress the attribute in associative array with keys and values unescaped noclasses & $ret
 
presenting them properly to the user as errors is done by the caller return true use this to change the list i e etc $rev
 
div flags Integer display flags(NO_ACTION_LINK, NO_EXTRA_USER_LINKS) 'LogException' returning false will NOT prevent logging a wrapping ErrorException create2 Corresponds to logging log_action database field and which is displayed in the UI & $revert
 
also included in $newHeader $rollback
 
the value to return A Title object or null for latest all implement SearchIndexField must implement ResultSetAugmentor$rowAugmentors
 
do that in ParserLimitReportFormat instead use this to modify the parameters of the image all existing parser cache entries will be invalid To avoid you ll need to handle that somehow(e.g. with the RejectParserCacheValue hook) because MediaWiki won 't do it for you. & $defaults also a ContextSource after deleting those rows but within the same transaction $rows
 
usually copyright or history_copyright This message must be in HTML not wikitext if the section is included from a template $section
 
static configuration should be added through ResourceLoaderGetConfigVars instead can be used to get the real title e g db for database replication lag or jobqueue for job queue size converted to pseudo seconds It is possible to add more fields and they will be returned to the user in the API response after the basic globals have been set but before ordinary actions take place or wrap services the preferred way to define a new service is the $wgServiceWiringFiles array $services
 
null means default in associative array with keys and values unescaped Should be merged with default with a value of false meaning to suppress the attribute in associative array with keys and values unescaped noclasses just before the function returns a value If you return an< a > element with HTML attributes $attribs and contents $html will be returned If you return $ret will be returned $skin
 
div flags Integer display flags(NO_ACTION_LINK, NO_EXTRA_USER_LINKS) 'LogException' returning false will NOT prevent logging a wrapping ErrorException $suppressed
 
in this case you re responsible for computing and outputting the entire conflict i the difference between revisions and your text headers and sections and Diff$tabindex
 
this hook is for auditing only RecentChangesLinked and Watchlist Do not use this to implement individual filters if they are compatible with the ChangesListFilter and ChangesListFilterGroup structure use sub classes of those in conjunction with the ChangesListSpecialPageStructuredFilters hook This hook can be used to implement filters that do not implement that or custom behavior that is not an individual filter e g Watchlist & $tables
 
this hook is for auditing only or null if authentication failed before getting that far or null if we can t even determine that probably a stub it is not rendered in wiki pages or galleries in category pages allow injecting custom HTML after the section Any uses of the hook need to handle escaping $template
 
For QUnit the mediawiki tests qunit testrunner dependency will be added to any module whereas SearchGetNearMatch runs after $term
 
see documentation in includes Linker php for Linker::makeImageLink$time
 
namespace and then decline to actually register it file or subcat img or subcat $title
 
null for the local wiki Added should default to null in handler for backwards compatibility add a value to it if you want to add a cookie that have to vary cache options can modify as strings Extensions should add to this list prev or next refreshes the diff cache $unhide
 
return true to allow those checks to and false if checking is done & $user
 
this hook is for auditing only or null if authentication failed before getting that far $username
 
static configuration should be added through ResourceLoaderGetConfigVars instead & $vars
 
An extension or a local will often add custom code to the function with or without a global variable For someone wanting email notification when an article is shown may $wgCapitalizeTitle
 
 $wgHooks ['ArticleShow'][] = 'reverseArticleTitle'
 
An extension or a local will often add custom code to the function with or without a global variable For someone wanting email notification when an article is shown may $wgNotifyArticle
 
please add to it if you re going to add events to the MediaWiki code AbortAutoblock
 
An extension or a local will often add custom code to the function with or without a global variable For someone wanting email notification when an article is shown may add
 
Using a hook running we can avoid having all this option specific stuff in our mainline code Using the function We ve cleaned up the code here by removing clumps of infrequently used code and moving them off somewhere else It s much easier for someone working with this code to see what s _really_ going and make changes or fix bugs In addition
 
An extension or a local admin
 
passed in as a query string parameter to the various URLs constructed here(i.e. $prevlink) $ldel you ll need to handle error etc yourself Alternatively
 
and how to run hooks for an and one after Each event has a preferably in CamelCase For ArticleDelete hook A clump of code and data that should be run when an event happens This can be either a function and a chunk of or an object and a method hook function The function part of a third party developers and local administrators to define code that will be run at certain points in the mainline and to modify the data run by that mainline code Hooks can keep mainline code and make it easier to write extensions Hooks are a principled alternative to local patches for two options in MediaWiki One reverses the order of a title before displaying the article
 
this hook is for auditing only or null if authentication failed before getting that far or null if we can t even determine that probably a stub it is not rendered in wiki pages or galleries in category pages allow injecting custom HTML after the section Any uses of the hook need to handle escaping see BaseTemplate::getToolbox and BaseTemplate::makeListItem for details on the format of individual items inside of this array or by returning and letting standard HTTP rendering take place ATTENTION
 
this hook is for auditing only or null if authentication failed before getting that far or null if we can t even determine that AuthPluginAutoCreate
 
this hook is for auditing only or null if authentication failed before getting that far or null if we can t even determine that probably a stub AutopromoteCondition
 
Using a hook running we can avoid having all this option specific stuff in our mainline code Using the function becomes
 
this hook is for auditing only or null if authentication failed before getting that far or null if we can t even determine that probably a stub it is not rendered in wiki pages or galleries in category pages allow injecting custom HTML after the section Any uses of the hook need to handle escaping see BaseTemplate::getToolbox and BaseTemplate::makeListItem for details on the format of individual items inside of this array BeforeDisplayNoArticleText
 
this hook is for auditing only or null if authentication failed before getting that far or null if we can t even determine that probably a stub it is not rendered in wiki pages or galleries in category pages allow injecting custom HTML after the section Any uses of the hook need to handle escaping see BaseTemplate::getToolbox and BaseTemplate::makeListItem for details on the format of individual items inside of this array or by returning and letting standard HTTP rendering take place modifiable BeforeInitialize
 
this hook is for auditing only or null if authentication failed before getting that far or null if we can t even determine that probably a stub it is not rendered in wiki pages or galleries in category pages allow injecting custom HTML after the section Any uses of the hook need to handle escaping see BaseTemplate::getToolbox and BaseTemplate::makeListItem for details on the format of individual items inside of this array or by returning and letting standard HTTP rendering take place modifiable or by returning false and taking over the output modifiable modifiable BeforeParserFetchFileAndTitle
 
this hook is for auditing only or null if authentication failed before getting that far or null if we can t even determine that probably a stub it is not rendered in wiki pages or galleries in category pages allow injecting custom HTML after the section Any uses of the hook need to handle escaping see BaseTemplate::getToolbox and BaseTemplate::makeListItem for details on the format of individual items inside of this array or by returning and letting standard HTTP rendering take place modifiable or by returning false and taking over the output modifiable modifiable after all normalizations have been except for the $wgMaxImageArea check set to true or false to override the $wgMaxImageArea check result BitmapHandlerTransform
 
div flags Integer display flags(NO_ACTION_LINK, NO_EXTRA_USER_LINKS) 'LogException' returning false will NOT prevent logging a wrapping ErrorException block
 
this hook is for auditing only or null if authentication failed before getting that far or null if we can t even determine that probably a stub it is not rendered in wiki pages or galleries in category pages allow injecting custom HTML after the section Any uses of the hook need to handle escaping see BaseTemplate::getToolbox and BaseTemplate::makeListItem for details on the format of individual items inside of this array or by returning and letting standard HTTP rendering take place modifiable or by returning false and taking over the output modifiable modifiable after all normalizations have been except for the $wgMaxImageArea check set to true or false to override the $wgMaxImageArea check result gives extension the possibility to transform it themselves set to a MediaTransformOutput BlockIp
 
this hook is for auditing only or null if authentication failed before getting that far or null if we can t even determine that probably a stub it is not rendered in wiki pages or galleries in category pages allow injecting custom HTML after the section Any uses of the hook need to handle escaping see BaseTemplate::getToolbox and BaseTemplate::makeListItem for details on the format of individual items inside of this array or by returning and letting standard HTTP rendering take place modifiable or by returning false and taking over the output modifiable modifiable after all normalizations have been except for the $wgMaxImageArea check set to true or false to override the $wgMaxImageArea check result gives extension the possibility to transform it themselves set to a MediaTransformOutput the error message to be returned in an array BlockIpComplete
 
the value of this variable comes from LanguageConverter indexed by page_id indexed by prefixed DB keys on which the links will be shown can modify can modify can modify this should be populated with an alert message to that effect to be fed to an HTMLForm object and populate $result with the reason in the form of [messagename, param1, param2,...] or a MessageSpecifier error messages should be plain text with no special bolding
 
null means default in associative array with keys and values unescaped Should be merged with default with a value of false meaning to suppress the attribute in associative array with keys and values unescaped broken
 
do that in ParserLimitReportFormat instead use this to modify the parameters of the image all existing parser cache entries will be invalid To avoid bugs
 
in this case you re responsible for computing and outputting the entire conflict i the difference between revisions and your text headers and sections and Diff initially an empty< div id="toolbar"></div > Hook subscribers can return false to have no toolbar HTML be loaded overridable Default is either copyrightwarning or copyrightwarning2 overridable Default is editpage tos summary such as anonymity and the real check
 
this hook is for auditing only RecentChangesLinked and Watchlist Do not use this to implement individual filters if they are compatible with the ChangesListFilter and ChangesListFilterGroup structure use sub classes of those classes
 
and how to run hooks for an and one after Each event has a preferably in CamelCase For ArticleDelete hook A clump of code and data that should be run when an event happens This can be either a function and a chunk of or an object and a method hook function The function part of a third party developers and local administrators to define code that will be run at certain points in the mainline code
 
the value of this variable comes from LanguageConverter indexed by page_id indexed by prefixed DB keys on which the links will be shown can modify can modify can modify this should be populated with an alert message to that effect to be fed to an HTMLForm object and populate $result with the reason in the form of [messagename, param1, param2,...] or a MessageSpecifier error messages should be plain text with no special coloring
 
Returning false makes less sense for events where the action is complete
 
namespace addition is conditional
 
and how to run hooks for an and one after Each event has a preferably in CamelCase For ArticleDelete hook A clump of code and data that should be run when an event happens This can be either a function and a chunk of or an object and a method hook function The function part of a third party developers and local administrators to define code that will be run at certain points in the mainline and to modify the data run by that mainline code Hooks can keep mainline code and make it easier to write extensions Hooks are a principled alternative to local patches Consider
 
do that in ParserLimitReportFormat instead use this to modify the parameters of the image all existing parser cache entries will be invalid To avoid you ll need to handle that somehow(e.g. with the RejectParserCacheValue hook) because MediaWiki won 't do it for you. & $defaults also a ContextSource after deleting those rows but within the same transaction you ll probably need to make sure the header is varied on and they can depend only on the ResourceLoaderContext such as when responding to a resource loader request or generating HTML output included in core
 
the other converts the title to all uppercase letters Currently
 
and how to run hooks for an and one after Each event has a preferably in CamelCase For ArticleDelete hook A clump of code and data that should be run when an event happens This can be either a function and a chunk of data
 
Using a hook running we can avoid having all this option specific stuff in our mainline code Using the function We ve cleaned up the code here by removing clumps of infrequently used code and moving them off somewhere else It s much easier for someone working with this code to see what s _really_ going and make changes or fix bugs In we can take all the code that deals with the little used title reversing deleteAnArticle
 
also included in $newHeader if any indicating whether we should show just the diff
 
processing should stop and the error should be shown to the user if you wanted to authenticate users to a custom you could do
 
in this case you re responsible for computing and outputting the entire conflict i e
 
in this case you re responsible for computing and outputting the entire conflict i the difference between revisions and your text headers and sections and Diff initially an empty< div id="toolbar"></div > Hook subscribers can return false to have no toolbar HTML be loaded EditPageCopyrightWarning
 
in this case you re responsible for computing and outputting the entire conflict i the difference between revisions and your text headers and sections and Diff initially an empty< div id="toolbar"></div > Hook subscribers can return false to have no toolbar HTML be loaded overridable Default is either copyrightwarning or copyrightwarning2 EditPageGetCheckboxesDefinition
 
in this case you re responsible for computing and outputting the entire conflict i the difference between revisions and your text headers and sections and Diff initially an empty< div id="toolbar"></div > Hook subscribers can return false to have no toolbar HTML be loaded overridable Default is either copyrightwarning or copyrightwarning2 overridable Default is editpage tos summary EmailConfirmed
 
do that in ParserLimitReportFormat instead use this to modify the parameters of the image all existing parser cache entries will be invalid To avoid you ll need to handle that somehow(e.g. with the RejectParserCacheValue hook) because MediaWiki won 't do it for you. & $defaults error
 
the value of this variable comes from LanguageConverter indexed by page_id indexed by prefixed DB keys on which the links will be shown can modify can modify can modify this should be populated with an alert message to that effect to be fed to an HTMLForm object and populate $result with the reason in the form of [messagename, param1, param2,...] or a MessageSpecifier error messages should be plain text with no special etc to show that they re errors
 
Using a hook running we can avoid having all this option specific stuff in our mainline code Using the function We ve cleaned up the code here by removing clumps of infrequently used code and moving them off somewhere else It s much easier for someone working with this code to see what s _really_ going and make changes or fix bugs In we can take all the code that deals with the little used title reversing etc
 
how to add hooks for an event
 
and how to run hooks for an and one after Each event has a preferably in CamelCase For example
 
Using a hook running we can avoid having all this option specific stuff in our mainline code Using the function We ve cleaned up the code here by removing clumps of infrequently used code and moving them off somewhere else It s much easier for someone working with this code to see what s _really_ going and make changes or fix bugs In we can take all the code that deals with the little used title reversing exportArticle
 
processing should stop and the error should be shown to the userfalse
 
Allows to change the fields on the form that will be generated are created Can be used to omit specific feeds from being outputted You must not use this hook to add feeds
 
Using a hook running we can avoid having all this option specific stuff in our mainline code Using the function We ve cleaned up the code here by removing clumps of infrequently used code and moving them off somewhere else It s much easier for someone working with this code to see what s _really_ going and make changes or fix bugs In we can take all the code that deals with the little used title reversing we can concentrate it all in an extension file
 
return true to allow those checks to and false if checking is done remove or add to the links of a group of changes in EnhancedChangesList Hook subscribers can return false to omit this line from recentchanges use this to change the tables headers change it to an object instance and return false override the list derivative used FileDeleteComplete
 
null means default in associative array form
 
if the prop value should be in the metadata multi language array format
 
For QUnit framework
 
null for the local wiki Added should default to null in handler functions
 
null for the local wiki Added should default to null in handler for backwards compatibility GalleryGetModes
 
this hook is for auditing only RecentChangesLinked and Watchlist Do not use this to implement individual filters if they are compatible with the ChangesListFilter and ChangesListFilterGroup structure use sub classes of those in conjunction with the ChangesListSpecialPageStructuredFilters hook This hook can be used to implement filters that do not implement that or custom behavior that is not an individual filter e g Watchlist and Watchlist Generally
 
null for the local wiki Added should default to null in handler for backwards compatibility add a value to it if you want to add a cookie that have to vary cache options GetCanonicalURL
 
null for the local wiki Added should default to null in handler for backwards compatibility add a value to it if you want to add a cookie that have to vary cache options can modify as strings Extensions should add to this list GetDefaultSortkey
 
the value of this variable comes from LanguageConverter GetLinkColours
 
the value of this variable comes from LanguageConverter indexed by page_id indexed by prefixed DB keys on which the links will be shown GetLocalURL
 
presenting them properly to the user as errors is done by the caller return true getUserPermissionsErrorsExpensive
 
presenting them properly to the user as errors is done by the caller return true GitViewers
 
this hook is for auditing only or null if authentication failed before getting that far or null if we can t even determine that probably a stub it is not rendered in wiki pages or galleries in category pages allow injecting custom HTML after the section Any uses of the hook need to handle escaping see BaseTemplate::getToolbox and BaseTemplate::makeListItem for details on the format of individual items inside of this array or by returning and letting standard HTTP rendering take place modifiable or by returning false and taking over the output modifiable modifiable after all normalizations have been except for the $wgMaxImageArea check set to true or false to override the $wgMaxImageArea check result gives extension the possibility to transform it themselves set to a MediaTransformOutput the error message to be returned in an array you should do so by altering $wgNamespaceProtection and $wgNamespaceContentModels outside the handler
 
they could be provided by a third party developer or written by the admin him herself
 
presenting them properly to the user as errors is done by the caller return true use this to change the list i e etc next in line in page history
 
and how to run hooks for an and one after Each event has a preferably in CamelCase For ArticleDelete hook A clump of code and data that should be run when an event happens This can be either a function and a chunk of or an object and a method hook function The function part ofhook
 
Using a hook running we can avoid having all this option specific stuff in our mainline code Using hooks
 
static configuration should be added through ResourceLoaderGetConfigVars instead can be used to get the real title e g db for database replication lag or jobqueue for job queue size converted to pseudo seconds It is possible to add more fields and they will be returned to the user in the API response after the basic globals have been set but before ordinary actions take place or wrap services However
 
either a unescaped string or a HtmlArmor object after in associative array form imagelinks
 
null for the local wiki Added in
 
either a unescaped string or a HtmlArmor object after in associative array form externallinks including delete and insert
 
this hook is for auditing only RecentChangesLinked and Watchlist Do not use this to implement individual filters if they are compatible with the ChangesListFilter and ChangesListFilterGroup structure Instead
 
you don t have to do a grep find to see where the $wgReverseTitle variable is say If the code is well enough isolated
 
presenting them properly to the user as errors is done by the caller return true but is called only if expensive checks are enabled Add a permissions error when permissions errors are checked for Return false if the user can t do it
 
either a unescaped string or a HtmlArmor object after in associative array form externallinks including delete and has completed for all link tables whether this was an auto creation use $formDescriptor instead default is conds Array Extra conditions for the No matching items in log is displayed if loglist is empty msgKey Array If you want a nice box with a set this to the key of the message First element is the message key
 
usually copyright or history_copyright This message must be in HTML not wikitext if the section is included from a template to be included in the link
 
in this case you re responsible for computing and outputting the entire conflict i the difference between revisions and your text headers and sections Live
 
either a unescaped string or a HtmlArmor object after in associative array form externallinks including delete and has completed for all link tables whether this was an auto creation LogEventsListGetExtraInputs
 
divlt
 
static configuration should be added through ResourceLoaderGetConfigVars instead can be used to get the real title MarkPatrolled
 
hooks txt This document describes how event hooks work in MediaWiki
 
static configuration should be added through ResourceLoaderGetConfigVars instead can be used to get the real title e g db for database replication lag or jobqueue for job queue size converted to pseudo seconds It is possible to add more fields and they will be returned to the user in the API response MediaWikiPerformAction
 
either a unescaped string or a HtmlArmor object after in associative array form externallinks including delete and has completed for all link tables whether this was an auto creation use $formDescriptor instead default is conds Array Extra conditions for the No matching items in log is displayed if loglist is empty msgKey Array If you want a nice box with a message
 
passed in as a query string parameter to the various URLs constructed here(i.e. $prevlink) $ldel you ll need to handle error messages
 
for adding new MIME types to the list ModifyExportQuery
 
and how to run hooks for an and one after Each event has a name
 
either a unescaped string or a HtmlArmor object
 
return true to allow those checks to occur
 
When an event occurs
 
Using a hook running we can avoid having all this option specific stuff in our mainline code Using the function We ve cleaned up the code here by removing clumps of infrequently used code and moving them off somewhere else It s much easier for someone working with this code to see what s _really_ going on
 
and how to run hooks for an and one after Each event has a preferably in CamelCase For PageContentSave
 
and how to run hooks for an and one after Each event has a preferably in CamelCase For PageContentSaveComplete
 
either a unescaped string or a HtmlArmor object after in associative array form pagelinks
 
namespace are movable Hooks may change this value to override the return value of MWNamespace::isMovable(). 'NewDifferenceEngine' if it s text intended for display in a monospaced font $report should be output in English ParserLimitReportPrepare
 
in this case you re responsible for computing and outputting the entire conflict part
 
this hook is for auditing only or null if authentication failed before getting that far or null if we can t even determine that probably a stub it is not rendered in wiki pages or galleries in category pages allow injecting custom HTML after the section Any uses of the hook need to handle escaping see BaseTemplate::getToolbox and BaseTemplate::makeListItem for details on the format of individual items inside of this array or by returning and letting standard HTTP rendering take place modifiable or by returning false and taking over the output modifiable modifiable after all normalizations have been performed
 
either a plain
 
in this case you re responsible for computing and outputting the entire conflict i the difference between revisions and your text headers and sections Preview
 
null means default in associative array with keys and values unescaped Should be merged with default with a value of false meaning to suppress the attribute in associative array with keys and values unescaped noclasses just before the function returns a value If you return an< a > element with HTML attributes $attribs and contents $html will be returned If you return $ret will be returned and may include noclasses after processing after processing
 
this hook is for auditing only RecentChangesLinked and Watchlist Do not use this to implement individual filters if they are compatible with the ChangesListFilter and ChangesListFilterGroup structure use sub classes of those in conjunction with the ChangesListSpecialPageStructuredFilters hook This hook can be used to implement filters that do not implement that or custom behavior that is not an individual filter e g Watchlist RecentChangesLinked
 
static configuration should be added through ResourceLoaderGetConfigVars instead can be used to get the real title e g db for database replication lag or jobqueue for job queue size converted to pseudo seconds It is possible to add more fields and they will be returned to the user in the API response after the basic globals have been set but before ordinary actions take place replace
 
div flags Integer display flags(NO_ACTION_LINK, NO_EXTRA_USER_LINKS) 'LogException' returning false will NOT prevent logging a wrapping ErrorException create2 Corresponds to logging log_action database field and which is displayed in the UI similar to $comment this hook should only be used to add variables that depend on the current page request
 
presenting them properly to the user as errors is done by the caller return true use this to change the list i e rollback
 
Allows to change the fields on the form that will be generated rss
 
This code would result in ircNotify being run twice when an article is saved
 
set to $title object and return false for a match SearchGetNearMatch
 
set to $title object and return false for a match SearchGetNearMatchBefore
 
the value to return A Title object or null SearchGetNearMatchComplete
 
the value to return A Title object or null for latest SearchIndexFields
 
and how to run hooks for an and one after Each event has a preferably in CamelCase For ArticleDelete hook A clump of code and data that should be run when an event happens This can be either a function and a chunk of or an object and a method hook function The function part of a third party developers and local administrators to define code that will be run at certain points in the mainline and to modify the data run by that mainline code Hooks can keep mainline code simple
 
null for the local wiki Added should default to null in handler for backwards compatibility add a value to it if you want to add a cookie that have to vary cache options can modify as strings Extensions should add to this list prev or next refreshes the diff cache allow viewing deleted revs source
 
Using a hook running strategy
 
This code would result in ircNotify being run twice when an article is and once for brion Hooks can return three possible true was required This is the default since MediaWiki *some string
 
this hook is for auditing only RecentChangesLinked and Watchlist Do not use this to implement individual filters if they are compatible with the ChangesListFilter and ChangesListFilterGroup structure use sub classes of those in conjunction with the ChangesListSpecialPageStructuredFilters hook This hook can be used to implement filters that do not implement that structure
 
this hook is for auditing only RecentChangesLinked and Watchlist Do not use this to implement individual filters if they are compatible with the ChangesListFilter and ChangesListFilterGroup structure use sub classes of those in conjunction with the ChangesListSpecialPageStructuredFilters hook This hook can be used to implement filters that do not implement that or custom behavior that is not an individual filter e g Watchlist and Watchlist you will want to construct new ChangesListBooleanFilter or ChangesListStringOptionsFilter objects When constructing them
 
null means default in associative array with keys and values unescaped Should be merged with default with a value of false meaning to suppress the attribute in associative array with keys and values unescaped noclasses just before the function returns a value If you return true
 
Having all this code related to the title reversion option in one place means that it s easier to read and understand
 
presenting them properly to the user as errors is done by the caller return true use this to change the list i e undo
 
static configuration should be added through ResourceLoaderGetConfigVars instead can be used to get the real title e g db for database replication lag or jobqueue for job queue size converted to pseudo seconds It is possible to add more fields and they will be returned to the user in the API response after the basic globals have been set up
 
you don t have to do a grep find to see where the $wgReverseTitle variable is used
 
and how to run hooks for an and one after Each event has a preferably in CamelCase For UserLogin
 
This code would result in ircNotify being run twice when an article is and once for brion Hooks can return three possible values
 
Using a hook running we can avoid having all this option specific stuff in our mainline code Using the function We ve cleaned up the code here by removing clumps of weird
 
An extension writer
 

Typedef Documentation

◆ $result

namespace being checked & $result

Definition at line 1995 of file hooks.txt.

◆ $status

using $status = Status::newGood()` to allow deletion, and then `return false` from the hook function. Ensure you consume the 'ChangeTagAfterDelete' hook to carry out custom deletion actions. $tag: name of the tag $user: user initiating the action &$status: Status object. See above. 'ChangeTagsListActive': Allows you to nominate which of the tags your extension uses are in active use. &$tags: list of all active tags. Append to this array. 'ChangeTagsAfterUpdateTags': Called after tags have been updated with the ChangeTags::updateTags function. Params: $addedTags: tags effectively added in the update $removedTags: tags effectively removed in the update $prevTags: tags that were present prior to the update $rc_id: recentchanges table id $rev_id: revision table id $log_id: logging table id $params: tag params $rc: RecentChange being tagged when the tagging accompanies the action, or null $user: User who performed the tagging when the tagging is subsequent to the action, or null 'ChangeTagsAllowedAdd': Called when checking if a user can add tags to a change. &$allowedTags: List of all the tags the user is allowed to add. Any tags the user wants to add ($addTags) that are not in this array will cause it to fail. You may add or remove tags to this array as required. $addTags: List of tags user intends to add. $user: User who is adding the tags. 'ChangeUserGroups': Called before user groups are changed. $performer: The User who will perform the change $user: The User whose groups will be changed &$add: The groups that will be added &$remove: The groups that will be removed 'Collation::factory': Called if $wgCategoryCollation is an unknown collation. $collationName: Name of the collation in question &$collationObject: Null. Replace with a subclass of the Collation class that implements the collation given in $collationName. 'ConfirmEmailComplete': Called after a user's email has been confirmed successfully. $user: user (object) whose email is being confirmed 'ContentAlterParserOutput': Modify parser output for a given content object. Called by Content::getParserOutput after parsing has finished. Can be used for changes that depend on the result of the parsing but have to be done before LinksUpdate is called (such as adding tracking categories based on the rendered HTML). $content: The Content to render $title: Title of the page, as context $parserOutput: ParserOutput to manipulate 'ContentGetParserOutput': Customize parser output for a given content object, called by AbstractContent::getParserOutput. May be used to override the normal model-specific rendering of page content. $content: The Content to render $title: Title of the page, as context $revId: The revision ID, as context $options: ParserOptions for rendering. To avoid confusing the parser cache, the output can only depend on parameters provided to this hook function, not on global state. $generateHtml: boolean, indicating whether full HTML should be generated. If false, generation of HTML may be skipped, but other information should still be present in the ParserOutput object. &$output: ParserOutput, to manipulate or replace 'ContentHandlerDefaultModelFor': Called when the default content model is determined for a given title. May be used to assign a different model for that title. $title: the Title in question &$model: the model name. Use with CONTENT_MODEL_XXX constants. 'ContentHandlerForModelID': Called when a ContentHandler is requested for a given content model name, but no entry for that model exists in $wgContentHandlers. Note: if your extension implements additional models via this hook, please use GetContentModels hook to make them known to core. $modeName: the requested content model name &$handler: set this to a ContentHandler object, if desired. 'ContentModelCanBeUsedOn': Called to determine whether that content model can be used on a given page. This is especially useful to prevent some content models to be used in some special location. $contentModel: ID of the content model in question $title: the Title in question. &$ok: Output parameter, whether it is OK to use $contentModel on $title. Handler functions that modify $ok should generally return false to prevent further hooks from further modifying $ok. 'ContribsPager::getQueryInfo': Before the contributions query is about to run &$pager: Pager object for contributions &$queryInfo: The query for the contribs Pager 'ContribsPager::reallyDoQuery': Called before really executing the query for My Contributions &$data: an array of results of all contribs queries $pager: The ContribsPager object hooked into $offset: Index offset, inclusive $limit: Exact query limit $descending: Query direction, false for ascending, true for descending 'ContributionsLineEnding': Called before a contributions HTML line is finished $page: SpecialPage object for contributions &$ret: the HTML line $row: the DB row for this line &$classes: the classes to add to the surrounding <li> &$attribs: associative array of other HTML attributes for the <li> element. Currently only data attributes reserved to MediaWiki are allowed (see Sanitizer::isReservedDataAttribute). 'ContributionsToolLinks': Change tool links above Special:Contributions $id: User identifier $title: User page title &$tools: Array of tool links $specialPage: SpecialPage instance for context and services. Can be either SpecialContributions or DeletedContributionsPage. Extensions should type hint against a generic SpecialPage though. 'ConvertContent': Called by AbstractContent::convert when a conversion to another content model is requested. Handler functions that modify $result should generally return false to disable further attempts at conversion. $content: The Content object to be converted. $toModel: The ID of the content model to convert to. $lossy: boolean indicating whether lossy conversion is allowed. &$result: Output parameter, in case the handler function wants to provide a converted Content object. Note that $result->getContentModel() must return $toModel. 'ContentSecurityPolicyDefaultSource': Modify the allowed CSP load sources. This affects all directives except for the script directive. If you want to add a script source, see ContentSecurityPolicyScriptSource hook. &$defaultSrc: Array of Content-Security-Policy allowed sources $policyConfig: Current configuration for the Content-Security-Policy header $mode: ContentSecurityPolicy::REPORT_ONLY_MODE or ContentSecurityPolicy::FULL_MODE depending on type of header 'ContentSecurityPolicyDirectives': Modify the content security policy directives. Use this only if ContentSecurityPolicyDefaultSource and ContentSecurityPolicyScriptSource do not meet your needs. &$directives: Array of CSP directives $policyConfig: Current configuration for the CSP header $mode: ContentSecurityPolicy::REPORT_ONLY_MODE or ContentSecurityPolicy::FULL_MODE depending on type of header 'ContentSecurityPolicyScriptSource': Modify the allowed CSP script sources. Note that you also have to use ContentSecurityPolicyDefaultSource if you want non-script sources to be loaded from whatever you add. &$scriptSrc: Array of CSP directives $policyConfig: Current configuration for the CSP header $mode: ContentSecurityPolicy::REPORT_ONLY_MODE or ContentSecurityPolicy::FULL_MODE depending on type of header 'CustomEditor': When invoking the page editor Return true to allow the normal editor to be used, or false if implementing a custom editor, e.g. for a special namespace, etc. $article: Article being edited $user: User performing the edit 'DatabaseOraclePostInit': Called after initialising an Oracle database $db: the DatabaseOracle object 'DeletedContribsPager::reallyDoQuery': Called before really executing the query for Special:DeletedContributions Similar to ContribsPager::reallyDoQuery &$data: an array of results of all contribs queries $pager: The DeletedContribsPager object hooked into $offset: Index offset, inclusive $limit: Exact query limit $descending: Query direction, false for ascending, true for descending 'DeletedContributionsLineEnding': Called before a DeletedContributions HTML line is finished. Similar to ContributionsLineEnding $page: SpecialPage object for DeletedContributions &$ret: the HTML line $row: the DB row for this line &$classes: the classes to add to the surrounding <li> &$attribs: associative array of other HTML attributes for the <li> element. Currently only data attributes reserved to MediaWiki are allowed (see Sanitizer::isReservedDataAttribute). 'DeleteUnknownPreferences': Called by the cleanupPreferences.php maintenance script to build a WHERE clause with which to delete preferences that are not known about. This hook is used by extensions that have dynamically-named preferences that should not be deleted in the usual cleanup process. For example, the Gadgets extension creates preferences prefixed with 'gadget-', and so anything with that prefix is excluded from the deletion. &where: An array that will be passed as the $cond parameter to IDatabase::select() to determine what will be deleted from the user_properties table. $db: The IDatabase object, useful for accessing $db->buildLike() etc. 'DifferenceEngineAfterLoadNewText': called in DifferenceEngine::loadNewText() after the new revision's content has been loaded into the class member variable $differenceEngine->mNewContent but before returning true from this function. $differenceEngine: DifferenceEngine object 'DifferenceEngineLoadTextAfterNewContentIsLoaded': called in DifferenceEngine::loadText() after the new revision's content has been loaded into the class member variable $differenceEngine->mNewContent but before checking if the variable's value is null. This hook can be used to inject content into said class member variable. $differenceEngine: DifferenceEngine object 'DifferenceEngineMarkPatrolledLink': Allows extensions to change the "mark as patrolled" link which is shown both on the diff header as well as on the bottom of a page, usually wrapped in a span element which has class="patrollink". $differenceEngine: DifferenceEngine object &$markAsPatrolledLink: The "mark as patrolled" link HTML (string) $rcid: Recent change ID (rc_id) for this change (int) 'DifferenceEngineMarkPatrolledRCID': Allows extensions to possibly change the rcid parameter. For example the rcid might be set to zero due to the user being the same as the performer of the change but an extension might still want to show it under certain conditions. &$rcid: rc_id (int) of the change or 0 $differenceEngine: DifferenceEngine object $change: RecentChange object $user: User object representing the current user 'DifferenceEngineNewHeader': Allows extensions to change the $newHeader variable, which contains information about the new revision, such as the revision's author, whether the revision was marked as a minor edit or not, etc. $differenceEngine: DifferenceEngine object &$newHeader: The string containing the various #mw-diff-otitle[1-5] divs, which include things like revision author info, revision comment, RevisionDelete link and more $formattedRevisionTools: Array containing revision tools, some of which may have been injected with the DiffRevisionTools hook $nextlink: String containing the link to the next revision (if any)

Definition at line 1277 of file hooks.txt.

◆ myext.tests

using myext.tests = [ 'script' => 'extension/myext/tests.js', 'dependencies' => <any module dependency you might have> ]

Definition at line 2844 of file hooks.txt.

Function Documentation

◆ addExtraTypes()

for adding new MIME info to the list Use $mimeMagic addExtraTypes (   $stringOfTypes)

◆ follows()

the other converts the title to all uppercase letters in MediaWiki we would handle this as follows ( note:not real  code,
here   
)

Definition at line 35 of file hooks.txt.

References $article, and $wgCapitalizeTitle.

◆ groups()

this hook is for auditing only RecentChangesLinked and Watchlist Do not use this to implement individual filters if they are compatible with the ChangesListFilter and ChangesListFilterGroup structure use sub classes of those in conjunction with the ChangesListSpecialPageStructuredFilters hook This hook can be used to implement filters that do not implement that or custom behavior that is not an individual filter e g Watchlist and Watchlist you will want to construct new ChangesListBooleanFilter or ChangesListStringOptionsFilter objects When constructing you specify which group they belong to You can reuse existing groups ( accessed through $special->  getFilterGroup)

◆ if()

if (   $wgReverseTitle)

Definition at line 58 of file hooks.txt.

References $article.

◆ instance()

the value of this variable comes from LanguageConverter indexed by page_id indexed by prefixed DB keys on which the links will be shown can modify can modify can modify this should be populated with an alert message to that effect to be fed to an HTMLForm object and populate $result with the reason in the form of [ messagename, param1, param2, ... ] or a MessageSpecifier instance ( you might want to use ApiMessage to provide machine-readable details for the  API)

◆ ldapLogin()

function ldapLogin (   $username,
  $password 
)

Definition at line 192 of file hooks.txt.

◆ options()

Using a hook running we can avoid having all this option specific stuff in our mainline code Using the function We ve cleaned up the code here by removing clumps of infrequently used code and moving them off somewhere else It s much easier for someone working with this code to see what s _really_ going and make changes or fix bugs In we can take all the code that deals with the little used title reversing options ( say  )

Referenced by ! wikitext, CleanupEmptyCategories::__construct(), PopulateCategory::__construct(), ResourceLoaderClientHtml::__construct(), MediaWiki\Logger\Monolog\KafkaHandler::__construct(), Revision\RenderedRevision::__construct(), FormOptions::add(), MediaWiki\Logger\Monolog\KafkaHandler::addMessages(), XmlSelect::addOption(), ApiQueryBase::addOption(), XmlSelect::addOptions(), BatchRowIterator::addOptions(), ApiQueryBase::addWhereRange(), CompareParsers::checkOptions(), FormOptions::consumeValue(), FormOptions::consumeValues(), FormOptions::delete(), MediaWiki\Storage\DerivedPageDataUpdater::doParserCacheUpdate(), MediaWiki\Storage\DerivedPageDataUpdater::doSecondaryDataUpdates(), MediaWiki\Storage\DerivedPageDataUpdater::doUpdates(), SpecialBlockList::execute(), FormOptions::fetchValuesFromRequest(), FormOptions::getAllValues(), SpecialBlockList::getBlockListPager(), ResourceLoaderClientHtml::getBodyHtml(), FormOptions::getChangedValues(), ResourceLoaderClientHtml::getHeadHtml(), XmlSelect::getHTML(), ParserOptions::getOption(), Revision\RenderedRevision::getSlotParserOutput(), FormOptions::getUnconsumedValues(), FormOptions::getValue(), ParserOptions::initialiseFromUser(), MediaWiki\Storage\DerivedPageDataUpdater::isChange(), MediaWiki\Storage\DerivedPageDataUpdater::isCreation(), ParserOptions::isSafeToCache(), ParserOptions::matches(), BatchRowIterator::next(), FormOptions::offsetExists(), ParserOptions::optionsHash(), MediaWiki\Storage\DerivedPageDataUpdater::prepareContent(), MediaWiki\Storage\DerivedPageDataUpdater::prepareUpdate(), CompareParsers::processRevision(), MediaWiki\Sparql\SparqlClient::query(), FormOptions::reset(), ApiQueryBase::resetQueryParams(), ApiQueryBase::select(), MediaWiki\Sparql\SparqlClient::setClientOptions(), ParserOptions::setOption(), ParserOptions::setOptionLegacy(), Revision\RenderedRevision::setRevisionInternal(), ExtraParserTest::setUp(), FormOptions::setValue(), HTMLAutoCompleteSelectFieldTest::testGetAttributes(), ExtraParserTest::testGetPreloadText(), ExtraParserTest::testParse(), ExtraParserTest::testParseLinkParameter(), ExtraParserTest::testPreprocess(), ExtraParserTest::testPreSaveTransform(), XmlSelectTest::testSetDefaultAfterAddingOptions(), ExtraParserTest::testTrackingCategory(), ExtraParserTest::testTrackingCategorySpecial(), FormOptions::validateBounds(), FormOptions::validateName(), UserOptionsMaintenance::warn(), and MediaWiki\Logger\Monolog\KafkaHandler::warning().

◆ own()

this hook is for auditing only RecentChangesLinked and Watchlist Do not use this to implement individual filters if they are compatible with the ChangesListFilter and ChangesListFilterGroup structure use sub classes of those in conjunction with the ChangesListSpecialPageStructuredFilters hook This hook can be used to implement filters that do not implement that or custom behavior that is not an individual filter e g Watchlist and Watchlist you will want to construct new ChangesListBooleanFilter or ChangesListStringOptionsFilter objects When constructing you specify which group they belong to You can reuse existing or create your own ( ChangesListBooleanFilterGroup or  ChangesListStringOptionsFilterGroup)
new

◆ query()

either a unescaped string or a HtmlArmor object after in associative array form externallinks including delete and has completed for all link tables whether this was an auto creation use $formDescriptor instead default is conds Array Extra conditions for the query ( )

◆ system()

processing should stop and the error should be shown to the user if you wanted to authenticate users to a custom system ( LDAP  ,
another PHP  program,
whatever   
)

Referenced by MWDocGen::execute().

◆ values()

Returning false makes less sense for events where the action is and will normally be ignored Note that none of the examples made use of create_function () as a way to attach a function to a hook. This is known to cause problems (notably with Special this is a necessary inconvenience to make it possible to pass reference values ( that can be  changed)

◆ wfMessage()

either a unescaped string or a HtmlArmor object after in associative array form externallinks including delete and has completed for all link tables whether this was an auto creation use $formDescriptor instead default is conds Array Extra conditions for the No matching items in log is displayed if loglist is empty msgKey Array If you want a nice box with a set this to the key of the message First element is the message additional optional elements are parameters for the key that are processed with wfMessage ( ) -> params() ->parseAsBlock() - offset Set to overwrite offset parameter in $wgRequest set to '' to unset offset - wrap String Wrap the message in html(usually something like "&lt

Referenced by HTMLSelectOrOtherField::__construct(), MediaWiki\Widget\SizeFilterWidget::__construct(), HTMLAutoCompleteSelectField::__construct(), MalformedTitleException::__construct(), MessageContent::__construct(), MediaWiki\Widget\DateInputWidget::__construct(), UploadChunkVerificationException::__construct(), MediaTransformError::__construct(), TransformParameterError::__construct(), TransformTooBigImageAreaError::__construct(), UploadStashFile::__construct(), Linker::accesskey(), LogPage::actionText(), Action::addHelpLink(), Article::addHelpLink(), MediaHandler::addMeta(), WikitextContent::addSectionHeader(), ParserOutput::addTrackingCategory(), ApiQuerySiteinfo::appendInterwikiMap(), JsonContent::arrayTable(), SpecialVersion::arrayToString(), MediaWiki\Auth\AuthManager::autoCreateUser(), MediaWiki\Auth\AuthManager::beginAccountCreation(), MediaWiki\Auth\AuthManager::beginAccountLink(), MediaWiki\Auth\ConfirmLinkSecondaryAuthenticationProvider::beginLinkAttempt(), Linker::blockLink(), Parser::braceSubstitution(), OutputPage::buildBacklinkSubtitle(), AllMessagesTablePager::buildForm(), ProtectionForm::buildForm(), Xml::buildForm(), ChangesFeed::buildItems(), SpecialEditWatchlist::buildTools(), MediaWiki\Auth\AuthManager::checkAccountCreatePermissions(), SpecialPage::checkLoginSecurityLevel(), Title::checkSiteConfigPermissions(), Title::checkSpecialsAndNSPermissions(), CleanupSpam::cleanupArticle(), UploadStash::clear(), Language::commaList(), Linker::commentBlock(), WikiPage::commitRollback(), EmailNotification::composeCommonMailtext(), Article::confirmDelete(), MediaWiki\Auth\AuthManager::continueAccountCreation(), MediaWiki\Auth\AuthManager::continueAccountLink(), MediaWiki\Auth\AuthManager::continueAuthentication(), MediaWiki\Auth\ConfirmLinkSecondaryAuthenticationProvider::continueLinkAttempt(), LanguageConverter::convertNamespace(), Installer::createMainpage(), Xml::dateMenu(), CoreParserFunctions::defaultsort(), Article::delete(), MediaWiki\Session\SessionProvider::describe(), MediaWiki\Auth\PasswordDomainAuthenticationRequest::describeCredentials(), MediaWiki\Auth\PasswordAuthenticationRequest::describeCredentials(), MediaWiki\Auth\TemporaryPasswordAuthenticationRequest::describeCredentials(), MediaWiki\Session\SessionProvider::describeMessage(), UploadBase::detectVirus(), CoreParserFunctions::displaytitle(), Block::doAutoblock(), FileDeleteForm::doDelete(), Article::doDelete(), MockDjVuHandler::doTransform(), TransformationalImageHandler::doTransform(), DjVuHandler::doTransform(), SvgHandler::doTransform(), WikiPage::doUpdateRestrictions(), WebInstaller::downloadLinkHook(), Linker::emailLink(), WebInstallerPage::endForm(), WebInstallerInstall::endStage(), Installer::envCheckDB(), ApiImageRotate::execute(), WebInstallerComplete::execute(), WebInstallerDBConnect::execute(), WebInstallerExistingWiki::execute(), WebInstallerOptions::execute(), WebInstallerRestart::execute(), WebInstallerWelcome::execute(), WebInstallerName::execute(), ApiEditPage::execute(), WebInstallerInstall::execute(), WebInstallerUpgrade::execute(), ApiQueryAllMessages::execute(), DumpMessages::execute(), CleanupSpam::execute(), ApiFeedContributions::execute(), ApiFeedWatchlist::execute(), DumpIterator::execute(), DumpRenderer::execute(), FileDeleteForm::execute(), PasswordReset::execute(), MediaWiki\Auth\AbstractPasswordPrimaryAuthenticationProvider::failResponse(), ApiFeedContributions::feedItemDesc(), MessageBlobStore::fetchMessage(), DeleteEqualMessages::fetchMessageInfo(), ChangesList::flag(), Linker::formatAutocomments(), BlockLogFormatter::formatBlockFlag(), BlockLogFormatter::formatBlockFlags(), FeedUtils::formatDiff(), FeedUtils::formatDiffRow(), LanguageZh_hans::formatDuration(), Language::formatDuration(), WikiPage::formatExpiry(), Linker::formatHiddenCategories(), Linker::formatRevisionSize(), ApiParse::formatSummary(), Language::formatTimePeriod(), ContentHandler::getAutoDeleteReason(), ContentHandler::getAutosummary(), User::getBlockedStatus(), WebInstallerOptions::getCCDoneBox(), CategoryMembershipChange::getChangeMessageText(), WebInstaller::getCheckBox(), OracleInstaller::getConnectForm(), PostgresInstaller::getConnectForm(), MysqlInstaller::getConnectForm(), MssqlInstaller::getConnectForm(), SpecialVersion::getCopyrightAndAuthorList(), EditPage::getCopyrightWarning(), Title::getDefaultMessageText(), Interwiki::getDescription(), LogPage::getDescription(), MediaWiki\Config\ConfigRepository::getDescriptionOf(), FeedUtils::getDiffLink(), ImageHandler::getDimensionsString(), Title::getEditNotices(), Status::getErrorMessage(), SpecialUpload::getExistsWarning(), UploadStash::getExtensionForPath(), SpecialVersion::getExtensionTypes(), MediaWiki\Auth\CreationReasonAuthenticationRequest::getFieldInfo(), MediaWiki\Auth\UsernameAuthenticationRequest::getFieldInfo(), MediaWiki\Auth\PasswordAuthenticationRequest::getFieldInfo(), MediaWiki\Auth\UserDataAuthenticationRequest::getFieldInfo(), MediaWiki\Auth\TemporaryPasswordAuthenticationRequest::getFieldInfo(), MediaWiki\Auth\ConfirmLinkAuthenticationRequest::getFieldInfo(), MediaWiki\Auth\PasswordDomainAuthenticationRequest::getFieldInfo(), MediaWiki\Auth\RememberMeAuthenticationRequest::getFieldInfo(), WebInstallerPage::getFieldsetStart(), UploadStash::getFile(), WebInstallerDocument::getFileContents(), UploadBase::getFilenamePrefixBlacklist(), NumericUppercaseCollation::getFirstLetter(), IcuCollation::getFirstLetter(), MediaHandler::getGeneralLongDesc(), User::getGrantName(), MWGrants::getGrantsWikiText(), UserGroupMembership::getGroupMemberName(), UserGroupMembership::getGroupName(), UserGroupMembership::getGroupPage(), WebInstaller::getHelpBox(), Language::getHumanTimestampInternal(), WikiTextStructure::getIgnoredHeadings(), WebInstaller::getInfoBox(), SpecialUpload::getInitialPageText(), DatabaseInstaller::getInstallUserBox(), LogFormatter::getIRCActionComment(), LogFormatter::getIRCActionText(), SkinTemplate::getLanguages(), ContentHandler::getLocalizedName(), PNGHandler::getLongDesc(), GIFHandler::getLongDesc(), ImageHandler::getLongDesc(), SvgHandler::getLongDesc(), SpecialVersion::getMediaWikiCredits(), Status::getMessage(), Licenses::getMessageFromParams(), ErrorPageError::getMessageObject(), MalformedTitleException::getMessageObject(), GenerateJqueryMsgData::getMessagesAndTests(), CliInstaller::getMessageText(), Interwiki::getName(), LogPage::getName(), WebInstaller::getPageListItem(), MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProvider::getPasswordResetData(), EditPage::getPreviewLimitReport(), WebInstaller::getRadioElements(), LogPage::getRcComment(), LogPage::getRcCommentIRC(), DatabaseInstaller::getReadableName(), Block::getRedactedName(), Article::getRedirectHeaderHtml(), MWTimestamp::getRelativeTimestamp(), User::getRightDescription(), MysqlInstaller::getSettingsForm(), MssqlInstaller::getSettingsForm(), ImageHandler::getShortDesc(), SpecialBlock::getSuggestedDurations(), MediaWiki\Preferences\DefaultPreferencesFactory::getTimeZoneList(), MWTimestamp::getTimezoneMessage(), LogPage::getTitleLink(), TrackingCategories::getTrackingCategories(), CategoryMembershipChange::getUser(), DoubleRedirectJob::getUser(), Parser::getUserSig(), Language::getVariantname(), SpecialVersion::getVersion(), FormatMetadata::getVisibleFields(), StripState::getWarning(), DatabaseInstaller::getWebUserBox(), Status::getWikiText(), MWGrants::grantName(), PageDataRequestHandler::handleRequest(), Title::hasSourceText(), QuickTemplate::haveMsg(), CoreTagHooks::html(), PageDataRequestHandler::httpContentNegotiation(), BackupReader::importFromHandle(), CoreTagHooks::indicator(), UploadStash::initFile(), WikiPage::insertProtectNullRevision(), DifferenceEngine::intermediateEditsMsg(), Parser::interwikiTransclude(), CoreParserFunctions::intFunction(), User::isUsableName(), Block::isWhitelistedFromAutoblocks(), WebInstaller::label(), Xml::languageSelector(), Parser::limitationWarn(), UploadStash::listFiles(), BotPassword::login(), Parser::magicLinkCallback(), MediaWiki\Linker\LinkRenderer::makeBrokenLink(), ContentSecurityPolicy::makeCSPDirectives(), Skin::makeI18nUrl(), Parser::makeLimitReport(), BaseTemplate::makeLink(), ApiBase::makeMessage(), WebInstallerOptions::makeScreenshotsLink(), BaseTemplate::makeSearchButton(), BaseTemplate::makeSearchInput(), Linker::makeThumbLink2(), Parser::maybeMakeExternalImage(), MergeHistory::merge(), Xml::monthSelector(), MovePage::move(), MovePage::moveToInternal(), MockMessageLocalizer::msg(), MWException::msg(), HTMLFormField::msg(), QuickTemplate::msg(), MWExceptionRenderer::msg(), ResourceLoaderContext::msg(), DerivativeContext::msg(), RequestContext::msg(), Language::msg(), QuickTemplate::msgHtml(), QuickTemplate::msgWiki(), SearchEngineConfig::namespacesAsText(), Html::namespaceSelectorOptions(), Title::newMainPage(), WikiImporter::notice(), Language::numLink(), JsonContent::objectTable(), RawAction::onView(), WebInstallerOutput::outputFooter(), WebInstallerOutput::outputTitle(), FormatJson::parse(), ConverterRule::parse(), SearchEngine::parseNamespacePrefixes(), Language::pipeList(), FileDeleteForm::prepareMessage(), WikiPage::protectDescription(), LogFormatterTest::provideApiParamFormatting(), ApiErrorFormatterTest::provideErrorFormatter(), ApiMainTest::provideExceptionErrors(), MediaWiki\Auth\AuthenticationRequestTest::provideLoadFromSubmission(), TextPassDumper::readDump(), AllMessagesTablePager::reallyDoQuery(), LanguageConverter::recursiveConvertRule(), UploadStash::removeFile(), WikitextContent::replaceSection(), SpecialPageTest::requireLoginAnonProvider(), CheckStorage::restoreText(), Linker::revComment(), Linker::revDeleteLink(), Linker::revDeleteLinkDisabled(), Linker::revUserLink(), Linker::revUserTools(), DoubleRedirectJob::run(), Language::semicolonList(), User::sendConfirmationMail(), EmailNotification::sendImpersonal(), User::sendMail(), MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProvider::sendNewAccountEmail(), MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProvider::sendPasswordResetEmail(), User::setEmailWithConfirmation(), FileDeleteForm::setHeaders(), WikiImporter::setTargetRootPage(), Article::showDiffPage(), WebInstallerUpgrade::showDoneMessage(), WebInstaller::showError(), FileDeleteForm::showForm(), WebInstallerExistingWiki::showKeyForm(), WebInstaller::showMessage(), Article::showMissingArticle(), Article::showNamespaceHeader(), Article::showPatrolFooter(), SpecialVersion::softwareInformation(), Linker::specialLink(), WebInstaller::startPageWrapper(), WebInstallerInstall::startStage(), UploadStash::stashFile(), Parser::statelessFetchTemplate(), WebInstallerName::submit(), WebInstallerOptions::submit(), OutputPageTest::testAddWikiMsg(), MediaWiki\Auth\AuthManagerTest::testAutoAccountCreation(), ApiLoginTest::testBotPasswordLocked(), ApiLoginTest::testBotPasswordThrottled(), MediaWiki\Auth\AuthManagerTest::testCheckAccountCreatePermissions(), ApiQuerySiteinfoTest::testContinuation(), MediaWiki\Auth\AuthManagerTest::testCreateFromLogin(), ApiLoginTest::testDeprecatedUserLogin(), ApiErrorFormatterTest::testErrorFormatter(), ApiErrorFormatterTest::testErrorFormatterBC(), MessageTest::testExists(), MediaWiki\Auth\ThrottlePreAuthenticationProvider::testForAccountCreation(), MediaWiki\Auth\ThrottlePreAuthenticationProvider::testForAuthentication(), BlockListPagerTest::testFormatValueRestrictions(), ContentHandlerTest::testGetAutosummary(), ListToggleTest::testGetHTML(), MediaWiki\Auth\ButtonAuthenticationRequestTest::testGetRequestByName(), MediaWiki\Auth\ButtonAuthenticationRequestTest::testGetUniqueId(), ApiLoginTest::testGoodPass(), StatusTest::testHasMessage(), SpecialBlankPageTest::testHasWikiMsg(), MessageTest::testInContentLanguage(), MessageTest::testInContentLanguageOverride(), MessageTest::testInLanguage(), MessageTest::testInLanguageThrows(), XmlTest::testLanguageSelector(), LogFormatterTest::testLogParamsTypeMsg(), LogFormatterTest::testLogParamsTypeMsgContent(), MediaWiki\Auth\AuthenticationRequestTest::testMergeFieldInfo(), ResourcesTest::testMissingMessages(), PasswordPolicyChecksTest::testPasswordPolicyDescriptionsExist(), MessageTest::testRawParams(), ApiQuerySiteinfoTest::testSkins(), MediaWiki\Auth\ThrottlePreAuthenticationProviderTest::testTestForAuthentication(), MessageTest::testToStringKey(), ExtraParserTest::testTrackingCategory(), MediaWiki\Auth\ResetPasswordSecondaryAuthenticationProviderTest::testTryReset(), ApiLoginTest::testUnsupportedAuthResponseType(), ArticleViewTest::testViewMessagePage(), MessageTest::testWfMessage(), MessageTest::testWfMessageParams(), OutputPageTest::testWrapWikiMsg(), Linker::titleAttrib(), Linker::tocList(), File::transformErrorOutput(), BitmapHandler::transformGd(), Language::truncateHtml(), Language::truncateInternal(), MediaWiki\Auth\ResetPasswordSecondaryAuthenticationProvider::tryReset(), PageArchive::undeleteRevisions(), Linker::userTalkLink(), Linker::userToolLinks(), Article::view(), Language::viewPrevNext(), Article::viewRedirect(), wfGenerateThumbnail(), wfStreamThumb(), MediaWiki\Session\ImmutableSessionProviderWithCookie::whyNoSession(), and MediaWiki\Session\CookieSessionProvider::whyNoSession().

Variable Documentation

◆ $article

return true to allow those checks to and false if checking is done remove or add to the links of a group of changes in EnhancedChangesList Hook subscribers can return false to omit this line from recentchanges use this to change the tables headers change it to an object instance and return false override the list derivative used the name of the old file& $article

Definition at line 1487 of file hooks.txt.

Referenced by ProtectionForm::__construct(), EditPage::__construct(), EditPageTest::assertEdit(), Orphans::checkSeparation(), CategoryViewer::columnList(), ApiParse::execute(), RebuildFileCache::execute(), follows(), ParserCache::get(), ParserCache::getDirty(), ParserCache::getETag(), ParserCache::getKey(), ParserCache::getParserOutputKey(), ListredirectsPage::getRedirectTarget(), if(), MediaWiki::initializeArticle(), Article::newFromWikiPage(), MediaWiki::performRequest(), DoubleRedirectJob::run(), CategoryFinder::run(), ArticleViewTest::testArticleAfterFetchContentObjectHook(), ArticleViewTest::testArticleContentViewCustomHook(), ArticleViewTest::testArticleRevisionViewCustomHook(), ArticleViewTest::testArticleViewHeaderHook(), EditPageTest::testCheckDirectEditingDisallowed_forNonTextContent(), TitleTest::testExists(), ArticleViewTest::testGetOldId(), ArticleViewTest::testShowMissingArticleHook(), ArticleViewTest::testUnhiddenViewOfDeletedRevision(), ArticleViewTest::testView(), ArticleViewTest::testViewCached(), ArticleViewTest::testViewDeletedPage(), ArticleViewTest::testViewMessagePage(), ArticleViewTest::testViewMissingPage(), ArticleViewTest::testViewMissingUserPage(), ArticleViewTest::testViewNonText(), ArticleViewTest::testViewOfCurrentRevision(), ArticleViewTest::testViewOfDeletedRevision(), ArticleViewTest::testViewOfMissingRevision(), ArticleViewTest::testViewOfOldRevision(), ArticleViewTest::testViewRedirect(), ArticleViewTest::testViewUserPageOfNonexistingUser(), and PageArchive::undeleteRevisions().

◆ $attribs

either a unescaped string or a HtmlArmor object & $attribs

Definition at line 1997 of file hooks.txt.

Referenced by PPNode_Hash_Tree::__toString(), OutputPage::addElement(), HTMLForm::addHiddenField(), ProtectionForm::buildForm(), Xml::buildTable(), Xml::buildTableRow(), MediaWiki\EditPage\TextboxBuilder::buildTextboxAttribs(), Xml::check(), Html::check(), Xml::checkLabel(), UploadBase::checkSvgScriptCallback(), Sanitizer::decodeTagAttributes(), EditPage::displayPreviewArea(), WebInstaller::docLink(), Skin::doEditSectionLink(), Html::dropDefaults(), Xml::element(), Html::element(), Xml::elementClean(), XmlTypeCheck::elementClose(), XmlTypeCheck::elementOpen(), WebInstallerOptions::execute(), Xml::expandAttributes(), Xml::fieldset(), CategoryViewer::formatList(), HTMLMultiSelectField::formatOptions(), HTMLRadioField::formatOptions(), SpecialUndelete::formatRevisionRow(), DeletedContribsPager::formatRow(), SpecialNewpages::formatRow(), ContribsPager::formatRow(), HTMLForm::formatSection(), HTMLComboboxField::getAttributes(), HTMLAutoCompleteSelectField::getAttributes(), OOUIHTMLForm::getButtons(), VFormHTMLForm::getButtons(), HTMLForm::getButtons(), DatabaseInstaller::getCheckBox(), MediaTransformOutput::getDescLinkAttribs(), MediaWiki\EditPage\TextConflictHelper::getEditConflictMainTextBox(), Parser::getExternalLinkAttribs(), VFormHTMLForm::getFormAttributes(), HTMLForm::getFormAttributes(), ResourceLoaderModule::getHeaders(), HTMLForm::getHiddenFields(), ChangeTagsRevisionItem::getHTML(), ChangeTagsLogItem::getHTML(), CategoryViewer::getHTML(), RevDelRevisionItem::getHTML(), HTMLSizeFilterField::getInputHTML(), HTMLTextAreaField::getInputHTML(), HTMLTextField::getInputHTML(), HTMLCheckMatrix::getInputHTML(), Licenses::getInputHTML(), HTMLFormFieldCloner::getInputHTMLForKey(), HTMLComboboxField::getInputOOUI(), HTMLSelectField::getInputOOUI(), HTMLTextAreaField::getInputOOUI(), HTMLTextField::getInputOOUI(), HTMLCheckMatrix::getInputOOUI(), HTMLFormFieldCloner::getInputOOUIForKey(), UploadSourceField::getLabelHtml(), TablePager::getLimitSelect(), IRCColourfulRCFeedFormatter::getLine(), EnhancedChangesList::getLineData(), HTMLMultiSelectField::getOneCheckbox(), HTMLCheckMatrix::getOneCheckboxHTML(), DatabaseInstaller::getPasswordBox(), EditPage::getPreviewText(), LogFormatter::getRestrictedElement(), DatabaseInstaller::getTextBox(), HTMLTextField::getType(), UserrightsPage::groupCheckboxes(), Html::hidden(), HistoryPager::historyLine(), Html::htmlHeader(), Html::inlineStyle(), Xml::input(), Html::input(), Xml::inputLabel(), Xml::inputLabelSep(), Xml::label(), Html::label(), LogEventsList::logLine(), MediaWiki\Linker\LinkRenderer::makeBrokenLink(), TestRecentChangesHelper::makeCategorizationRecentChange(), TestRecentChangesHelper::makeDeletedEditRecentChange(), TestRecentChangesHelper::makeEditRecentChange(), DummyLinker::makeExternalLink(), Linker::makeExternalLink(), DummyLinker::makeHeadline(), TestRecentChangesHelper::makeLogRecentChange(), Linker::makeMediaLinkFile(), TestRecentChangesHelper::makeNewBotEditRecentChange(), MediaWiki\Linker\LinkRenderer::makePreloadedLink(), TestRecentChangesHelper::makeRecentChange(), MediaWiki\Linker\LinkRenderer::mergeAttribs(), MediaWiki\EditPage\TextboxBuilder::mergeClassesIntoAttributes(), Xml::openElement(), Html::openElement(), Xml::option(), SpecialRecentChanges::optionsPanel(), Licenses::outputOption(), Xml::password(), CoreTagHooks::pre(), LinkerTest::provideLinkBeginHook(), LinkerTest::provideLinkEndHook(), Xml::radio(), Html::radio(), Xml::radioLabel(), Html::rawElement(), EnhancedChangesList::recentChangesBlockLine(), OldChangesList::recentChangesLine(), LinkHolderArray::replaceInternal(), Sanitizer::safeEncodeTagAttributes(), RecentChange::setAttribs(), ImageGalleryBase::setAttributes(), MediaWiki\EditPage\TextConflictHelper::showEditFormTextAfterFooters(), SpecialImport::showForm(), SpecialWatchlist::showHideCheck(), McrUndoAction::showPreview(), EditPage::showTextbox(), EditPage::showTextbox1(), Xml::span(), TextPassDumper::startElement(), LogFormatter::styleRestricedElement(), Xml::submitButton(), Xml::tags(), MediaWiki\Tests\EditPage\TextboxBuilderTest::testBuildTextboxAttribs(), HtmlTest::testDropDefaults(), SideBarTest::testRespectExternallinktarget(), SideBarTest::testRespectWgnofollowlinks(), SideBarTest::testTestAttributesAssertionHelper(), Xml::textarea(), Html::textarea(), TraditionalImageGallery::toHTML(), ThumbnailImage::toHtml(), Linker::tooltipAndAccesskeyAttribs(), Linker::userToolLinks(), Sanitizer::validateAttributes(), Sanitizer::validateTagAttributes(), and Xml::wrapClass().

◆ $auto

return true to allow those checks to and false if checking is done remove or add to the links of a group of changes in EnhancedChangesList Hook subscribers can return false to omit this line from recentchanges use this to change the tables headers change it to an object instance and return false override the list derivative used the name of the old file when set the default code will be skipped true if there is text before this autocomment $auto

◆ $changesList

return true to allow those checks to and false if checking is done remove or add to the links of a group of changes in EnhancedChangesList Hook subscribers can return false to omit this line from recentchanges $changesList

◆ $code

static configuration should be added through ResourceLoaderGetConfigVars instead can be used to get the real title e g db for database replication lag or jobqueue for job queue size converted to pseudo seconds It is possible to add more fields and they will be returned to the user in the API response after the basic globals have been set but before ordinary actions take place or wrap services the preferred way to define a new service is the $wgServiceWiringFiles array change it to the message you want to define $code
inline

Definition at line 785 of file hooks.txt.

Referenced by ZipDirectoryReaderError::__construct(), ApiRawMessage::__construct(), MessageCacheUpdate::__construct(), MediaWiki\Session\MetadataMergeException::__construct(), LocalizedException::__construct(), ApiMessage::__construct(), ApiQueryBacklinks::__construct(), ApiMain::__construct(), UploadStashException::__construct(), ApiErrorFormatter::addError(), ApiBase::addError(), Language::addMagicWordsByLang(), ApiErrorFormatter::addWarning(), ApiBase::addWarning(), ApiTestCase::apiExceptionHasCode(), ApiQuerySiteinfo::appendGeneralInfo(), ApiQuerySiteinfo::appendLanguages(), ApiQuerySiteinfo::appendSkins(), EmailConfirmation::attemptConfirm(), EmailInvalidation::attemptInvalidate(), LanguageCode::bcp47(), SkinTemplate::buildContentNavigationUrls(), Language::classFromCode(), MessageCache::clear(), TemplateParser::compile(), TemplateParser::compileForEval(), UploadBase::convertVerifyErrorToStatus(), Wikimedia\StaticArrayWriter::create(), ApiMessage::create(), ImagePage::createXmlOptionStringForLanguage(), Language::dateTimeObjFormat(), ApiBase::dieWithError(), ApiBase::dieWithErrorOrDebug(), RebuildLocalisationCache::doRebuild(), MessageCacheUpdate::doUpdate(), ZipDirectoryReader::error(), ApiCSPReport::error(), ApiMain::errorMessagesFromException(), PageExists::execute(), EmailInvalidation::execute(), DateFormats::execute(), Digit2Html::execute(), EmailConfirmation::execute(), GenerateNormalizerDataAr::execute(), FindDeprecated::execute(), ChangesListSpecialPage::execute(), SpecialPageExecutor::executeSpecialPage(), SpecialJavaScriptTest::exportQUnit(), Language::factory(), SpecialNewpages::feedTitle(), QueryPage::feedTitle(), Language::fetchLanguageName(), SpecialMyLanguage::findTitle(), Language::firstChar(), TagHooksTest::functionTagCallback(), LCStoreDB::get(), LCStoreCDB::get(), LCStoreStaticArray::get(), MessageCache::getAllMessageKeys(), Languages::getCaseMismatchMagicWords(), MessageCache::getCheckKey(), ClassCollector::getClasses(), LocalisationCache::getCompiledPluralRules(), Languages::getDuplicateMessages(), Languages::getEmptyMessages(), Languages::getFallback(), Language::getFallbackFor(), Language::getFallbacksFor(), Language::getFallbacksIncludingSiteLanguage(), LCStoreCDB::getFileName(), Language::getFileName(), SpecialPageLanguage::getFormFields(), LocalisationCacheBulkLoad::getItem(), LocalisationCache::getItem(), Language::getJsonMessagesFileName(), RequestContext::getLanguage(), WebInstallerLanguage::getLanguageSelector(), WANObjectCache::getLastError(), MessageCache::getLocalCache(), Languages::getMagicWords(), HttpStatus::getMessage(), Language::getMessageFor(), MessageCache::getMessageForLang(), Language::getMessageKeysFor(), Languages::getMessages(), Language::getMessagesFileName(), Language::getMessagesFor(), Languages::getMessagesWithDubiousLinks(), Languages::getMessagesWithMismatchVariables(), Languages::getMessagesWithoutPlural(), Languages::getMessagesWithUnbalanced(), Languages::getMessagesWithWhitespace(), Languages::getMessagesWithWrongChars(), MessageCache::getMsgFromNamespace(), Languages::getNamespaceAliases(), Languages::getNamespaceNames(), LanguageCode::getNonstandardLanguageCodeMapping(), Languages::getNonXHTMLMessages(), Languages::getObsoleteMagicWords(), Languages::getObsoleteMessages(), Languages::getObsoleteSpecialPages(), Languages::getOverridingMagicWords(), Language::getParentLanguage(), LocalisationCache::getPluralRules(), LocalisationCache::getPluralRuleTypes(), Languages::getProblematicProjectTalks(), SpecialPageAliasTest::getSpecialPageAliases(), Languages::getSpecialPageAliases(), FauxResponse::getStatusCode(), LocalisationCacheBulkLoad::getSubitem(), LocalisationCache::getSubitem(), LocalisationCache::getSubitemList(), TemplateParser::getTemplate(), Languages::getUntranslatedMagicWords(), Languages::getUntranslatedMessages(), Languages::getUntranslatedNamespaces(), Languages::getUntraslatedSpecialPages(), MessageCache::getValidationHash(), Language::getVariantname(), HttpStatus::header(), LocalisationCache::initLanguage(), EditPage::internalAttemptSave(), LocalisationCache::isExpired(), Language::isSupportedLanguage(), Language::isValidBuiltInCode(), Language::isValidCode(), Language::isWellFormedLanguageTag(), CoreParserFunctions::language(), Xml::languageSelector(), MessageCache::load(), MessageCache::loadCachedMessagePageEntry(), Languages::loadFile(), ExtensionLanguages::loadFile(), MessageCache::loadFromDB(), MessageCache::loadFromDBWithLock(), LocalisationCache::loadItem(), Languages::loadMessages(), LocalisationCache::loadPluralFile(), LocalisationCache::loadSubitem(), BagOStuff::lock(), SvgHandler::makeParamString(), MessageCacheUpdate::merge(), LocalisationCache::mergeExtensionItem(), Language::newFromCode(), User::newFromConfirmationCode(), ApiUsageException::newWithMessage(), SwiftFileBackend::onError(), OutputPage::output(), FormatJson::parse(), ApiStashEdit::parseAndStash(), LanguageConverter::parseCachedTable(), SpecialUpload::processUpload(), SpecialUpload::processVerificationError(), MediaWiki\Preferences\DefaultPreferencesFactory::profilePreferences(), LocalisationCache::readSourceFilesAndRegisterDeps(), LocalisationCacheBulkLoad::recache(), LocalisationCache::recache(), MessageCache::refreshAndReplaceInternal(), MessageCache::replace(), LanguageCode::replaceDeprecatedCodes(), DbTestPreviewer::report(), ApiQueryBacklinks::run(), RequestContext::sanitizeLangCode(), MessageCache::saveToCaches(), MessageCache::saveToLocalCache(), setApiCode(), Language::setCode(), ApiTestCase::setExpectedApiException(), ApiFormatBase::setHttpStatus(), AjaxResponse::setResponseCode(), LoginSignupSpecialPage::setSessionUserForCurrentRequest(), MWHttpRequest::setStatus(), MessageCache::setValidationHash(), ChangesList::showCharacterDifference(), SpecialUploadStash::showUpload(), Language::sprintfDate(), LCStoreStaticArray::startWrite(), LCStoreDB::startWrite(), LCStoreCDB::startWrite(), WebResponse::statusHeader(), MWException::statusHeader(), MWExceptionRenderer::statusHeader(), FauxResponse::statusHeader(), WebInstallerOptions::submit(), OutputPageTest::testAddAcceptLanguage(), LanguageCodeTest::testBcp47(), LanguageTest::testBuiltInCodeValidation(), LanguageTest::testGetParentLanguage(), LanguageSrTest::testHasVariant(), LanguageSrTest::testHasVariantBogus(), HtmlTest::testInlineScript(), ApiMessageTest::testInvalidCode(), LanguageTest::testIsSupportedLanguage(), LanguageTest::testKnownLanguageTag(), ApiQuerySiteinfoTest::testLanguages(), JavaScriptMinifierTest::testLineBreaker(), LanguageTest::testMalformedLanguageTag(), CSSMinTest::testMinify(), JavaScriptMinifierTest::testMinifyOutput(), CSSMinTest::testMinifyWithCSSStringValues(), LocalisationCacheTest::testRecacheFallbacksWithHooks(), OutputPageTest::testRedirect(), ApiQuerySiteinfoTest::testSkins(), UploadBaseTest::testTitleValidation(), LanguageTest::testUnknownLanguageTag(), ApiQuerySiteinfoTest::testVariants(), LanguageTest::testWellFormedLanguageTag(), LocalisationCacheBulkLoad::trimCache(), LocalisationCacheBulkLoad::unload(), LocalisationCache::unload(), SpecialPageAliasTest::validSpecialPageAliasesProvider(), wfBCP47(), and wfHttpError().

◆ $colours

the value of this variable comes from LanguageConverter indexed by page_id& $colours

Definition at line 1690 of file hooks.txt.

Referenced by LinkHolderArray::doVariants(), and LinkHolderArray::replaceInternal().

◆ $context

do that in ParserLimitReportFormat instead use this to modify the parameters of the image all existing parser cache entries will be invalid To avoid you ll need to handle that somehow (e.g. with the RejectParserCacheValue hook) because MediaWiki won't do it for you. &$defaults also a ContextSource after deleting those rows but within the same transaction you ll probably need to make sure the header is varied on and they can depend only on the ResourceLoaderContext $context

Definition at line 1690 of file hooks.txt.

Referenced by SpecialRecentChanges::__construct(), LogPage::addEntry(), Parser::braceSubstitution(), SpecialBookSources::buildForm(), ProtectionForm::buildForm(), ChangesListSpecialPageTest::buildQuery(), DummyLinker::buildRollbackLink(), Linker::buildRollbackLink(), ChangeTags::buildTagFilterSelector(), ApiPageSetTest::createPageSetWithRedirect(), MWDebug::debugMsg(), Article::delete(), ApiTestCase::doApiRequest(), Article::doDelete(), ApiBaseTest::doGetParameterFromSettings(), HttpError::doLog(), ActionTest::dummyActionCallback(), ApiFormatTestBase::encodeData(), SpecialNewFiles::execute(), SpecialAutoblockList::execute(), SpecialBlockList::execute(), RebuildFileCache::execute(), PhpHttpRequest::execute(), SpecialEmailUser::execute(), SpecialPageExecutor::executeSpecialPage(), DiffFormatter::format(), FeedUtils::formatDiffRow(), GIFHandler::formatMetadata(), PNGHandler::formatMetadata(), ExifBitmapHandler::formatMetadata(), File::formatMetadata(), MediaHandler::formatMetadataHelper(), ChangeTags::formatSummaryRow(), MWCryptHKDF::generate(), MWCryptHKDF::generateHex(), DummyLinker::generateRollback(), Linker::generateRollback(), AuthManagerSpecialPage::getAuthForm(), LoginSignupSpecialPage::getAuthForm(), ChangesListSpecialPage::getChangeTagList(), SpecialEditWatchlist::getClearForm(), ResourceLoaderStartUpModule::getConfigSettings(), ResourceLoaderWikiModule::getContent(), ResourceLoaderWikiModule::getContentObj(), ActionTest::getContext(), OldChangesListTest::getContext(), RCCacheEntryFactoryTest::getContext(), ResourceLoaderForeignApiModule::getDependencies(), ResourceLoaderModule::getFlip(), ResourceLoaderFileModule::getFlip(), FormSpecialPage::getForm(), ApiContinuationManagerTest::getManager(), ApiFormatBaseTest::getMockFormatter(), SpecialEditWatchlist::getNormalForm(), OldChangesListTest::getOldChangesList(), SpecialEditWatchlist::getRawForm(), ManualLogEntry::getRecentChange(), TestRecentChangesHelper::getTestContext(), ParserOutput::getText(), SpecialUpload::getUploadForm(), RequestContext::importScopedSession(), WikitextContent::isCountable(), ResourceLoader::isEmptyObject(), TestLogger::log(), ChangesListSpecialPage::makeLegend(), PageDataRequestHandlerTest::makeOutputPage(), ContentHandler::makeParserOptions(), WikiPage::makeParserOptions(), Article::makeParserOptions(), SpecialPrefixindex::namespacePrefixForm(), ParserOptions::newCanonical(), SpecialPageExecutor::newContext(), EnhancedChangesListTest::newEnhancedChangesList(), RequestContext::newExtraneousContext(), Article::newFromWikiPage(), OutputPageTest::newInstance(), ApiTestContext::newTestContext(), ResourceLoader::outputErrorAndLog(), SpecialAllPages::outputHTMLForm(), ParserTestRunner::perTestSetup(), SpecialTags::processCreateTagForm(), SpecialTags::processTagForm(), ResourceLoaderFileModule::readStyleFile(), ResourceLoaderFileModule::readStyleFiles(), SpecialWatchlist::registerFilters(), UserNotLoggedIn::report(), Wikimedia\Rdbms\LoadBalancer::reportConnectionError(), User::resetOptions(), AssembleUploadChunksJob::run(), PublishStashedFileJob::run(), ParserTestRunner::runTest(), SpecialPage::setContext(), Article::setContext(), Article::setOldSubtitle(), LoginSignupSpecialPage::setSessionUserForCurrentRequest(), ContentSecurityPolicyTest::setUp(), ContribsPagerTest::setUp(), SpecialMIMESearchTest::setUp(), ActionTest::setUp(), AbstractChangesListSpecialPageTestCase::setUp(), UploadFromUrlTestSuite::setUp(), Article::showRedirectedFromHeader(), SpecialPreferences::showResetForm(), SpecialUploadStash::showUploads(), DerivativeResourceLoaderContextTest::testAccessors(), ActionTest::testActionFactory(), ApiMainTest::testApiErrorFormatterCreation(), MWDebugTest::testAppendDebugInfoToApiResultXmlFormat(), ResourceLoaderFileModuleTest::testBomConcatenation(), ResourceLoaderModuleTest::testBuildContentScripts(), ApiMainTest::testCheckConditionalRequestHeaders(), ResourceLoaderWikiModuleTest::testContentOverrides(), ResourceLoaderImageModuleTest::testContext(), ApiFormatPhpTest::testCrossDomainMangling(), ActionTest::testDisabledAction_isNotResolved(), ApiMainTest::testExceptionErrors(), ApiBaseTest::testExtractRequestParams(), SpecialWatchlistTest::testFetchOptionsFromRequest(), ApiFormatBaseTest::testForceDefaultParams(), HTMLRestrictionsFieldTest::testForm(), ActionTest::testGetActionName(), ActionTest::testGetActionName_editredlinkWorkaround(), ActionTest::testGetActionName_historysubmitWorkaround(), ActionTest::testGetActionName_revisiondeleteWorkaround(), ActionTest::testGetActionName_whenCanNotUseWikiPage_defaultsToView(), ResourceLoaderClientHtmlTest::testGetBodyHtml(), ResourceLoaderTest::testGetCombinedVersion(), ResourceLoaderWikiModuleTest::testGetContent(), ResourceLoaderWikiModuleTest::testGetContentForRedirects(), ResourceLoaderClientHtmlTest::testGetData(), SkinTemplateTest::testgetDefaultModules(), ChangesListSpecialPageTest::testGetFilterConflicts(), ResourceLoaderModuleTest::testGetHeaders(), ResourceLoaderClientHtmlTest::testGetHeadHtml(), ResourceLoaderImageTest::testGetImageData(), ResourceLoaderStartUpModuleTest::testGetModuleRegistrations(), ArticleViewTest::testGetOldId(), ApiBaseTest::testGetParameter(), ResourceLoaderImageTest::testGetPath(), ResourceLoaderWikiModuleTest::testGetPreloadedBadTitle(), ResourceLoaderWikiModuleTest::testGetPreloadedTitleInfo(), ResourceLoaderWikiModuleTest::testGetPreloadedTitleInfoEmpty(), ResourceLoaderImageModuleTest::testGetStyleDeclarations(), ResourceLoaderWikiModuleTest::testGetTitleInfo(), ResourceLoaderModuleTest::testGetVersionHash(), ResourceLoaderFileModuleTest::testGetVersionHash(), ResourceLoaderModuleTest::testGetVersionHash_parentDefinition(), ResourceLoaderStartUpModuleTest::testGetVersionHash_varyConfig(), ResourceLoaderStartUpModuleTest::testGetVersionHash_varyDeps(), ApiPageSetTest::testHandleNormalization(), ApiFormatBaseTest::testHtmlHeader(), RequestContextTest::testImportScopedSession(), ResourceLoaderWikiModuleTest::testIsKnownEmpty(), DerivativeResourceLoaderContextTest::testLanguage(), ResourceLoaderFileModuleTest::testLessFileCompilation(), CommandTest::testLogStderr(), ResourceLoaderClientHtmlTest::testMakeLoad(), ResourceLoaderTest::testMakeModuleResponseConcat(), ResourceLoaderTest::testMakeModuleResponseEmpty(), ResourceLoaderTest::testMakeModuleResponseError(), ResourceLoaderTest::testMakeModuleResponseErrorCSS(), ResourceLoaderTest::testMakeModuleResponseExtraHeaders(), ResourceLoaderTest::testMakeModuleResponseExtraHeadersMulti(), ResourceLoaderTest::testMakeModuleResponseStartupError(), ParserOptionsTest::testNewCanonical(), ActionTest::testNull_defaultsToView(), SpecialBlockTest::testProcessForm(), SpecialBlockTest::testProcessFormExisting(), SpecialBlockTest::testProcessFormRestictions(), SpecialBlockTest::testProcessFormRestrictionsChange(), SpecialSearchTest::testProfileAndNamespaceLoading(), ResourceLoaderStartUpModuleTest::testRegistrationsMinified(), ResourceLoaderStartUpModuleTest::testRegistrationsUnminified(), ResourceLoaderTest::testRespondEmpty(), ResourceLoaderTest::testRespondInternalFailures(), ResourceLoaderTest::testRespondSimple(), ApiPageSetTest::testSpecialRedirects(), SpecialPreferencesTest::testT43337(), MediaWikiTest::testTryNormaliseRedirect(), ArticleViewTest::testUnhiddenViewOfDeletedRevision(), ResourceLoaderModuleTest::testValidateScriptFile(), RequestContextTest::testWikiPageTitle(), wfDebug(), wfDebugLog(), wfLogDBError(), wfLogProfilingData(), and wfThumbError().

◆ $customAttribs

◆ $differenceEngine

◆ $e

div flags Integer display flags (NO_ACTION_LINK,NO_EXTRA_USER_LINKS) 'LogException' returning false will NOT prevent logging $e

Definition at line 2174 of file hooks.txt.

Referenced by ORAResult::__construct(), DatabaseTestHelper::__construct(), SVGReader::__construct(), Wikimedia\Rdbms\LBFactory::__construct(), Wikimedia\Rdbms\LoadBalancer::__construct(), FSFileBackendList::__construct(), RedisConnectionPool::__destruct(), MemcachedClient::_flush_read_buffer(), RedisBagOStuff::add(), UploadFromChunks::addChunk(), MediaWiki\Tests\Maintenance\BackupDumperPageTest::addDBData(), MediaWiki\Tests\Maintenance\TextPassDumperDatabaseTest::addDBData(), MediaWiki\Tests\Maintenance\BackupDumperLoggerTest::addDBData(), ApiQueryContinue2Test::addDBDataOnce(), ApiQueryBasicTest::addDBDataOnce(), ApiQueryContinueTest::addDBDataOnce(), MediaWiki\Tests\Maintenance\FetchTextTest::addDBDataOnce(), ApiTestCase::apiExceptionHasCode(), ResourceLoader::applyFilter(), SVGMetadataExtractorTest::assertMetadata(), DeprecationHelperTest::assertPropertySame(), ApiQueryTestBase::assertResult(), SqlBagOStuff::cas(), RedisBagOStuff::changeTTL(), SqlBagOStuff::changeTTL(), ApiMain::checkConditionalRequestHeaders(), PopulateArchiveRevId::checkMysqlAutoIncrementBug(), Sqlite::checkSqlSyntax(), CategoryViewer::clearCategoryState(), Wikimedia\Rdbms\LBFactory::commitMasterChanges(), Wikimedia\Rdbms\LoadBalancer::commitMasterChanges(), UploadFromChunks::concatenateChunks(), SwiftFileBackend::convertSwiftDate(), Installer::createMainpage(), MediaWiki\Preferences\DefaultPreferencesFactory::datetimePreferences(), Wikimedia\Rdbms\Database::deadlockLoop(), RedisBagOStuff::delete(), SqlBagOStuff::delete(), Wikimedia\Rdbms\DatabaseMssql::delete(), Article::delete(), SqlBagOStuff::deleteAll(), Wikimedia\Rdbms\DatabaseMssql::deleteJoin(), SqlBagOStuff::deleteObjectsExpiringBefore(), Installer::dirIsExecutable(), SpecialRedirect::dispatchFile(), profile_point::display(), EditPage::displayViewSourcePage(), JobQueueRedis::doAck(), JobQueueDB::doAck(), BitmapMetadataHandler::doApp13(), Wikimedia\Rdbms\Database::doAtomicSection(), JobQueueFederated::doBatchPush(), JobQueueRedis::doBatchPush(), JobQueueDB::doBatchPushInternal(), JobQueueFederated::doDeduplicateRootJob(), JobQueueRedis::doDeduplicateRootJob(), JobQueueFederated::doDelete(), JobQueueRedis::doDelete(), JobQueueDB::doDelete(), JobQueueDB::doGetAbandonedCount(), JobQueueRedis::doGetAbandonedCount(), JobQueueDB::doGetAcquiredCount(), JobQueueRedis::doGetAcquiredCount(), JobQueueAggregatorRedis::doGetAllReadyWikiQueues(), JobQueueRedis::doGetDelayedCount(), JobQueueFederated::doGetSiblingQueueSizes(), JobQueueRedis::doGetSiblingQueueSizes(), JobQueueFederated::doGetSiblingQueuesWithJobs(), JobQueueDB::doGetSize(), JobQueueRedis::doGetSize(), SpecialImport::doImport(), JobQueueDB::doIsEmpty(), JobQueueFederated::doIsEmpty(), JobQueueFederated::doIsRootJobOldDuplicate(), JobQueueRedis::doIsRootJobOldDuplicate(), DBFileJournal::doLogChangeBatch(), EventRelayerKafka::doNotify(), OracleInstaller::doOpenConnection(), FileOpPerfTest::doPerfTest(), JobQueueFederated::doPop(), JobQueueDB::doPop(), JobQueueRedis::doPop(), MediaWiki::doPostOutputShutdown(), ImageHistoryPseudoPager::doQuery(), DatabaseOracle::doSelectDomain(), MediaWikiTestCase::doStashMwGlobals(), DatabasePostgresTest::doTestInsertIgnore(), DatabasePostgresTest::doTestInsertSelectIgnore(), AutoCommitUpdate::doUpdate(), JobQueueEnqueueUpdate::doUpdate(), DatabaseInstaller::doUpgrade(), JobQueueFederated::doWaitForBackups(), TextPassDumper::dump(), ApiMain::errorMessagesFromException(), ValidateRegistrationFile::execute(), ApiImport::execute(), ApiUpload::execute(), ApiQueryStashImageInfo::execute(), SpecialLog::execute(), JSParseHelper::execute(), DeleteArchivedFiles::execute(), InvalidateUserSesssions::execute(), ApiFeedWatchlist::execute(), MysqlMaintenance::execute(), CreateCommonPasswordCdb::execute(), PPFuzzTester::execute(), RefreshImageMetadata::execute(), ZipDirectoryReader::execute(), ApiMain::executeActionWithErrorHandling(), JobRunner::executeJob(), Wikimedia\Rdbms\LBFactory::executePostTransactionCallbacks(), ApiQueryRevisionsBase::extractRevisionInfo(), ApiQueryRevisionsBase::extractSlotInfo(), DjVuHandler::extractTreesFromMetadata(), Wikimedia\Rdbms\Database::factory(), ApiFeedContributions::feedItemDesc(), EtcdConfig::fetchAllFromEtcdServer(), DatabaseOracle::fieldInfoMulti(), MediaWiki\Preferences\TimezoneFilter::filterFromForm(), TrackBlobs::findOrphanBlobs(), LCStoreDB::finishWrite(), LCStoreCDB::finishWrite(), MediaWiki\Logger\Monolog\LineFormatter::format(), MediaWiki\Logger\Monolog\AvroFormatter::format(), MediaWiki\Logger\LegacyLogger::format(), ResourceLoader::formatException(), ResourceLoader::formatExceptionNoComment(), Message::formatListParam(), DeletedContribsPager::formatRow(), MediaWikiTitleCodec::formatTitle(), RedisLockManager::freeLocksOnServer(), LCStoreCDB::get(), JobQueueRedis::getAllAbandonedJobs(), JobQueueRedis::getAllAcquiredJobs(), JobQueueRedis::getAllDelayedJobs(), MediaWiki\Interwiki\ClassicInterwikiLookup::getAllPrefixesCached(), JobQueueRedis::getAllQueuedJobs(), ResourceLoader::getCombinedVersion(), LocalisationCache::getCompiledPluralRules(), RedisConnectionPool::getConnection(), RedisBagOStuff::getConnection(), Revision::getContent(), JobQueueFederated::getCrossPartitionSum(), ReverseChronologicalPager::getDateCond(), UploadForm::getDescriptionSection(), Status::getErrorMessageArray(), SpecialEditWatchlist::getExpandedTargets(), MWExceptionRenderer::getHTML(), BmpHandler::getImageSize(), MediaWiki\Interwiki\ClassicInterwikiLookup::getInterwikiCacheEntry(), JobQueueRedis::getJobFromUidInternal(), JobQueueDB::getJobIterator(), Wikimedia\Rdbms\LoadBalancer::getLaggedReplicaMode(), RequestContext::getLanguage(), RedisLockManager::getLocksOnServer(), MWExceptionHandler::getLogContext(), MWExceptionHandler::getLogMessage(), MWExceptionHandler::getLogNormalMessage(), JobQueueDB::getMasterDB(), Wikimedia\Rdbms\DatabaseMysqlBase::getMasterServerInfo(), MimeAnalyzer::getMediaType(), GIFHandler::getMetadata(), PNGHandler::getMetadata(), TiffHandler::getMetadata(), JpegHandler::getMetadata(), SvgHandler::getMetadata(), ResourceLoaderStartUpModule::getModuleRegistrations(), RedisBagOStuff::getMulti(), SqlBagOStuff::getMulti(), MediaWiki\Auth\AbstractPasswordPrimaryAuthenticationProvider::getPassword(), MWExceptionHandler::getPublicLogMessage(), MediaWiki\Logger\Monolog\KafkaHandler::getRandomPartition(), MWExceptionHandler::getRedactedTrace(), MWExceptionHandler::getRedactedTraceAsString(), JobQueueDB::getReplicaDB(), SearchEngine::getSearchIndexFields(), JobQueueRedis::getServerQueuesWithJobs(), NewFilesPager::getStartBody(), MWExceptionHandler::getStructuredExceptionData(), MWExceptionRenderer::getText(), TextPassDumper::getText(), LocalFile::getThumbnails(), SpecialRandomInCategory::getTimestampOffset(), ContentHandler::getUndoContent(), RedisBagOStuff::getWithToken(), ParserFuzzTest::guessVarSize(), ApiMain::handleApiBeforeMainException(), MWExceptionHandler::handleError(), MWExceptionHandler::handleException(), RedisBagOStuff::handleException(), ApiMain::handleException(), VersionChecker::handleExtensionDependency(), ApiUpload::handleStashException(), MWExceptionHandler::handleUncaughtException(), EditPage::importFormData(), Installer::includeExtensions(), RedisBagOStuff::incr(), SqlBagOStuff::incr(), Wikimedia\Rdbms\DatabasePostgres::insert(), Wikimedia\Rdbms\DatabaseMssql::insert(), Wikimedia\Rdbms\DatabaseSqlite::insert(), DatabaseOracle::insertOneRow(), ResourceLoader::isEmptyObject(), DBLockManager::isServerUp(), SiteStats::jobs(), MWExceptionHandler::jsonSerializeException(), DatabaseOracle::lastErrno(), DatabaseOracle::lastError(), Wikimedia\Rdbms\DatabaseSqlite::lastError(), HTMLRestrictionsField::loadDataFromRequest(), MimeAnalyzer::loadFiles(), ExtensionRegistry::loadFromQueue(), Revision\RevisionStore::loadSlotContent(), Parser::lock(), ProfilerOutputDb::log(), MWExceptionHandler::logException(), FileOp::logFailure(), ApiMain::logRequest(), FormatMetadata::makeFormattedData(), ResourceLoader::makeModuleResponse(), Wikimedia\Rdbms\Database::makeQueryException(), Wikimedia\Rdbms\LoadBalancer::masterRunningReadOnly(), LocalFile::maybeUpgradeRow(), MediaWiki\Session\SessionProvider::mergeMetadata(), JSMinPlus::min(), MWException::msg(), MWExceptionRenderer::msg(), Wikimedia\Rdbms\DatabaseMssql::nativeInsertSelect(), FSFileBackendList::next(), Wikimedia\Rdbms\Database::nonNativeInsertSelect(), MediaWiki\Logger\Monolog\LogstashFormatter::normalizeException(), MediaWiki\Logger\Monolog\LineFormatter::normalizeException(), MWTimestamp::offsetForUser(), SpecialChangeContentModel::onSubmit(), Wikimedia\Rdbms\Database::onTransactionPreCommitOrIdle(), MysqlInstaller::openConnection(), SqliteInstaller::openConnection(), MssqlInstaller::openConnection(), PostgresInstaller::openConnectionWithParams(), Wikimedia\Rdbms\DatabaseSqlite::openFile(), MWExceptionRenderer::output(), OutputPage::output(), Installer::parse(), AjaxDispatcher::performAction(), ApiUpload::performStash(), JobQueue::pop(), PopulateContentTables::populateContentTablesForRowBatch(), PopulateContentModel::populateRevisionOrArchive(), MediaWiki::preOutputCommit(), PreprocessDump::processRevision(), MediaWiki\Logger\LegacyLoggerTest::provideInterpolate(), JobQueueGroup::push(), ApiQueryContinueTestBase::query(), Installer::readExtension(), Wikimedia\Rdbms\LoadBalancer::reallyOpenConnection(), QueryPage::recache(), JobQueueDB::recycleAndDeleteStaleJobs(), PoolCounterRedis::release(), PoolCounterRedis::releaseAll(), PostgreSqlLockManager::releaseAllLocks(), MySqlLockManager::releaseAllLocks(), Parser::renderImageGallery(), Wikimedia\Rdbms\DatabaseSqlite::replace(), Wikimedia\Rdbms\Database::replace(), Wikimedia\Rdbms\Database::replaceLostConnection(), MWExceptionHandler::report(), MWExceptionRenderer::reportHTML(), MWExceptionRenderer::reportOutageHTML(), ResourceLoader::respond(), MediaWiki\Block\BlockRestriction::restrictionsToRemove(), FSFileBackendList::rewind(), Wikimedia\Rdbms\Database::rollback(), MWExceptionHandler::rollbackMasterChangesAndLog(), TextPassDumper::rotateDb(), AssembleUploadChunksJob::run(), PublishStashedFileJob::run(), ApiQueryWatchlist::run(), ApiQueryRecentChanges::run(), MediaWiki::run(), Wikimedia\Rdbms\LoadBalancer::runMasterTransactionIdleCallbacks(), Wikimedia\Rdbms\LoadBalancer::runMasterTransactionListenerCallbacks(), Wikimedia\Rdbms\Database::runOnTransactionIdleCallbacks(), Wikimedia\Rdbms\Database::runOnTransactionPreCommitCallbacks(), ParserTestRunner::runTestsFromFiles(), Wikimedia\Rdbms\Database::runTransactionListenerCallbacks(), DeferredUpdates::runUpdate(), MediaWiki\MediaWikiServices::salvage(), ResourceLoaderModule::saveFileDependencies(), SamplingStatsdClient::send(), MediaWiki\Logger\Monolog\KafkaHandler::send(), UserMailer::sendInternal(), RedisBagOStuff::set(), LCStoreCDB::set(), VersionChecker::setCoreVersion(), RedisBagOStuff::setMulti(), SqlBagOStuff::setMulti(), MWHttpRequestTestCase::setUp(), JobQueueTest::setUp(), SqliteInstaller::setupDatabase(), PostgresInstaller::setupPLpgSQL(), PostgresInstaller::setupSchema(), MysqlInstaller::setupUser(), PostgresInstaller::setupUser(), SpecialUploadStash::showUpload(), SpecialUploadStash::showUploads(), Wikimedia\Rdbms\Database::sourceFile(), MwSql::sqlDoQuery(), WebInstaller::startSession(), LCStoreCDB::startWrite(), MediaWiki\Storage\SqlBlobStore::storeBlob(), SpecialEmailUser::submit(), MssqlInstaller::submitSettingsForm(), MysqlInstaller::submitSettingsForm(), ApiMain::substituteResultWithError(), ApiOptionsTest::testAnon(), ApiMainTest::testAssert(), ApiMainTest::testAssertBeforeModule(), ApiMainTest::testAssertUser(), DatabaseSQLTest::testAtomicSectionsCallbackCancellation(), UserNotLoggedInTest::testConstruction(), ReadOnlyErrorTest::testConstruction(), ErrorPageErrorTest::testConstruction(), ApiEditPageTest::testEditSection(), BadTitleErrorTest::testExceptionSetsStatusCode(), ThrottledErrorTest::testExceptionSetsStatusCode(), UploadStashTest::testExceptionWhenStoreTempFails(), SpecialPageDataTest::testExecute(), MediaWiki\Auth\ThrottlePreAuthenticationProvider::testForAuthentication(), MediaWiki\Tests\Storage\NameTableStoreTest::testGetAndAcquireId(), ResourceLoaderTest::testGetLoadScript(), MWExceptionHandlerTest::testGetRedactedTrace(), DatabaseTest::testGetScopedLock(), PageDataRequestHandlerTest::testHandleRequest(), DatabaseSQLTest::testImplicitTransactionRollback(), MapCacheLRUTest::testInvalidKeys(), LBFactoryTest::testInvalidSelectDB(), MWExceptionTest::testisCommandLine(), MWExceptionTest::testIsLogable(), ApiOptionsTest::testNoChanges(), ApiOptionsTest::testNoOptionname(), SlotDiffRendererTest::testNormalizeContents(), LoadBalancerTest::testOpenConnection(), ExtensionJsonValidationTest::testPassesValidation(), HTMLCheckMatrixTest::testPlainInstantiation(), MediaWiki\Auth\AuthPluginPrimaryAuthenticationProviderTest::testProviderChangeAuthenticationData(), ErrorPageErrorTest::testReport(), WikitextContentHandlerTest::testSerializeContent(), UploadFromUrlTest::testSetupUrlDownload(), WatchActionTest::testShowUserLoggedInNoException(), SpecialPageFatalTest::testSpecialPageDoesNotFatal(), ApiQueryTest::testTitlePartToKey(), DatabaseTest::testTransactionIdle_TRX(), DatabaseSQLTest::testTransactionStatementRollbackIgnoring(), WikitextContentHandlerTest::testUnserializeContent(), ApiUploadTest::testUpload(), ApiUploadTest::testUploadChunks(), ApiUploadTest::testUploadMissingParams(), ApiUploadTest::testUploadRequiresToken(), ApiUploadTest::testUploadSameContent(), ApiUploadTest::testUploadSameFileName(), ApiUploadTest::testUploadStash(), ApiUploadTest::testUploadZeroLength(), MWExceptionTest::testUseMessageCache(), MWExceptionTest::testUseOutputPage(), JobQueueRedis::throwRedisException(), BitmapHandler::transformImageMagickExt(), MediaWiki::triggerJobs(), JobQueueFederated::tryJobInsertions(), ResourceLoader::tryRespondFromFileCache(), UploadFromChunks::tryStashFile(), UploadBase::tryStashFile(), ContribsPager::tryToCreateValidRevision(), Wikimedia\Rdbms\DatabaseMssql::update(), DatabaseOracle::update(), PopulateRevisionSha1::upgradeLegacyArchiveRow(), PopulateRevisionSha1::upgradeRow(), Wikimedia\Rdbms\Database::upsert(), MWExceptionRenderer::useOutputPage(), Language::userAdjust(), HTMLTitleTextField::validate(), ExtensionJsonValidator::validate(), ApiStructureTest::validateDefault(), XmlTypeCheck::validateFromInput(), ResourceLoaderModule::validateScriptFile(), PoolCounterRedis::waitForSlotOrNotif(), wfGenerateThumbnail(), and wfStreamThumb().

◆ $editor

in this case you re responsible for computing and outputting the entire conflict i the difference between revisions and your text headers and sections & $editor

◆ $engine

◆ $extTypes

presenting them properly to the user as errors is done by the caller return true use this to change the list & $extTypes

Definition at line 1487 of file hooks.txt.

◆ $formDescriptor

◆ $handler

this hook is for auditing only or null if authentication failed before getting that far or null if we can t even determine that probably a stub it is not rendered in wiki pages or galleries in category pages allow injecting custom HTML after the section Any uses of the hook need to handle escaping see BaseTemplate::getToolbox and BaseTemplate::makeListItem for details on the format of individual items inside of this array or by returning and letting standard HTTP rendering take place modifiable or by returning false and taking over the output modifiable modifiable after all normalizations have been except for the $wgMaxImageArea check set to true or false to override the $wgMaxImageArea check result gives extension the possibility to transform it themselves $handler
inline

Definition at line 785 of file hooks.txt.

Referenced by EditPage::__construct(), Revision\RevisionStore::checkContent(), CleanupSpam::cleanupArticle(), MediaWiki\Storage\PageUpdater::computeEffectiveTags(), UploadBase::createFromRequest(), MediaWiki\Logger\MonologSpi::createLogger(), MediaWiki\Tests\Storage\DerivedPageDataUpdaterTest::defineMockContentModelForUpdateTesting(), WikiPageDbTestBase::defineMockContentModelForUpdateTesting(), FSFileBackend::doCopyInternal(), SwiftFileBackend::doCopyInternal(), FSFileBackend::doCreateInternal(), SwiftFileBackend::doCreateInternal(), FSFileBackend::doDeleteInternal(), SwiftFileBackend::doDeleteInternal(), SwiftFileBackend::doDescribeInternal(), FSFileBackend::doMoveInternal(), SwiftFileBackend::doMoveInternal(), FSFileBackend::doStoreInternal(), SwiftFileBackend::doStoreInternal(), MovePageForm::doSubmit(), Revision\RevisionStore::emulateMainSlot_1_29(), ApiImageRotate::execute(), ApiStashEdit::execute(), ImportImages::execute(), TextPassDumper::exportTransform(), ApiQueryRevisionsBase::extractDeprecatedContent(), Job::factory(), Article::generateReason(), ContentHandler::getAllContentFormats(), ResourceLoaderWikiModule::getContent(), WikiRevision::getContent(), EditPage::getCurrentContent(), FileContentHandler::getDataForSearchIndex(), WikiPage::getDeletionUpdates(), ContentHandler::getForModelID(), MediaHandlerFactory::getHandler(), MediaWiki\Logger\MonologSpi::getHandler(), Parser::getImageParams(), ImagePage::getLanguageForRendering(), SpecialChangeContentModel::getOptionsForTitle(), EditPage::getOriginalContent(), EditPage::getPreloadedContent(), MWFileProps::getPropsFromPath(), SearchEngine::getSearchIndexFields(), MediaWiki\Storage\DerivedPageDataUpdater::getSecondaryDataUpdates(), WikiPage::getUndoContent(), ThumbnailRenderJob::hitThumbUrl(), EditPage::importFormData(), Revision\RevisionStore::loadSlotContent(), MediaWiki\Storage\PageUpdater::makeAutoSummary(), ContentHandler::makeContent(), Parser::makeImage(), EditPage::mergeChangesIntoContent(), LogFormatter::newFromEntry(), ImagePage::openShowImage(), SpecialUploadStash::parseKey(), PopulateContentModel::populateRevisionOrArchive(), WikiImporter::processRevision(), ResourceLoaderImage::rasterize(), Parser::renderImageGallery(), MediaWikiTestCase::setTemporaryHook(), MediaWiki\EditPage\TextConflictHelper::showEditFormTextAfterFooters(), MovePageForm::showForm(), Sanitizer::stripAllTags(), MediaWiki\Logger\Monolog\KafkaHandlerTest::testBatchHandlesNullFormatterResult(), ContentHandlerTest::testDataIndexFields(), MediaWiki\Session\PHPSessionHandlerTest::testDisabled(), MediaWiki\Session\PHPSessionHandlerTest::testEnableFlags(), TextContentHandlerTest::testFieldsForIndex(), SvgHandlerTest::testGetAvailableLanguages(), MediaWiki\Logger\Monolog\KafkaHandlerTest::testGetAvailablePartitionsException(), ResourceLoaderWikiModuleTest::testGetContentForRedirects(), ContentHandlerTest::testGetFieldsForSearchIndex(), ContentHandlerTest::testGetForTitle(), MediaWiki\Session\SessionManagerTest::testGetGlobalSession(), WebPHandlerTest::testGetImageSize(), SvgHandlerTest::testGetIndependentMetaArray(), SvgHandlerTest::testGetLanguageFromParams(), SvgHandlerTest::testGetMatchedLanguage(), ContentHandlerTest::testGetModelForID(), ContentHandlerTest::testGetPageLanguage(), ContentHandlerTest::testGetSlotDiffRenderer_hook(), PageDataRequestHandlerTest::testHandleRequest(), MediaWiki\Logger\Monolog\KafkaHandlerTest::testHandlesNullFormatterResult(), PageDataRequestHandlerTest::testHttpContentNegotiation(), BitmapScalingTest::testImageArea(), SvgHandlerTest::testIsEnabled(), JobTest::testJobFactory(), JsonContentHandlerTest::testMakeEmptyContent(), SvgHandlerTest::testMakeParamString(), BitmapScalingTest::testNormaliseParams(), SvgHandlerTest::testNormaliseParamsInternal(), BitmapMetadataHandlerTest::testPNGNative(), BitmapMetadataHandlerTest::testPNGXMP(), MediaWiki\Session\SessionBackendTest::testResetIdOfGlobalSession(), MediaWiki\Logger\Monolog\KafkaHandlerTest::testSendException(), MediaWiki\Session\PHPSessionHandlerTest::testSessionHandling(), ContentHandlerTest::testSupportsCategories(), TextContentHandlerTest::testSupportsDirectEditing(), ContentHandlerTest::testSupportsDirectEditing(), MediaWiki\Session\SessionBackendTest::testTakeOverGlobalSession(), BitmapMetadataHandlerTest::testTiffByteOrder(), BitmapScalingTest::testTooBigImage(), BitmapScalingTest::testTooBigMustRenderImage(), MediaWiki\Logger\Monolog\KafkaHandlerTest::testTopicNaming(), MediaWiki\Session\SessionBackendTest::testUnpersistOfGlobalSession(), ArticleViewTest::testViewNonText(), MediaWiki\Session\PHPSessionHandlerTest::testWrongInstance(), TraditionalImageGallery::toHTML(), UploadBase::verifyFile(), wfExtractThumbParams(), and wfThumbIsStandard().

◆ $handlerParams

◆ $html

null means default in associative array with keys and values unescaped Should be merged with default with a value of false meaning to suppress the attribute in associative array with keys and values unescaped noclasses just before the function returns a value If you return an<a> element with HTML attributes $attribs and contents $html will be returned If you return $ret will be returned and may include noclasses& $html

Definition at line 1997 of file hooks.txt.

Referenced by ImageGalleryBase::add(), CachedAction::addCachedHTML(), WebInstallerPage::addHTML(), WebInstallerOutput::addHTML(), WebInstallerOutput::addHTMLNoFlush(), BenchmarkTidy::benchmark(), MediaWiki\Linker\LinkRenderer::buildAElement(), SpecialEditTags::buildCheckBoxes(), SpecialRevisionDelete::buildCheckBoxes(), Linker::buildRollbackLink(), MediaWiki\Tests\Revision\RenderedRevisionTest::combineOutput(), Revision\RevisionRenderer::combineSlotOutput(), HTMLForm::displaySection(), ApiParseTest::doAssertParsedTo(), WebInstallerInstall::endStage(), Html::errorBox(), Sanitizer::escapeHtmlAllowEntities(), BenchmarkTidy::execute(), ApiHelp::execute(), SpecialTrackingCategories::execute(), SpecialPageExecutor::executeSpecialPage(), OutputPageTest::extractHTMLTitle(), ApiFeedContributions::feedItemDesc(), TextContent::fillParserOutput(), ApiHelp::fixHelpLinks(), OldChangesList::formatChangeLine(), FeedUtils::formatDiffRow(), HTMLMultiSelectField::formatOptions(), HTMLRadioField::formatOptions(), OOUIHTMLForm::formatSection(), HTMLForm::formatSection(), MediaWiki\Widget\Search\FullSearchResultWidget::generateFileHtml(), CategoryViewer::generateLink(), BaseTemplate::getAfterPortlet(), OOUIHTMLForm::getBody(), PreferencesFormOOUI::getButtons(), SpecialVersion::getCreditsForExtension(), MWDebug::getDebugHTML(), OutputPage::getDisplayTitle(), HTMLFormField::getDiv(), Title::getEditNotices(), BaseTemplate::getFooter(), ApiHelp::getHelp(), WebInstaller::getHelpBox(), HTMLForm::getHiddenFields(), JavaScriptContent::getHtml(), CssContent::getHtml(), MWExceptionRenderer::getHTML(), QuickTemplate::getHTML(), HTMLForm::getHTML(), SpecialPageExecutor::getHTMLFromSpecialPage(), HTMLFormField::getInline(), HTMLSizeFilterField::getInputHTML(), HTMLRadioField::getInputHTML(), HTMLMultiSelectField::getInputHTML(), HTMLCheckMatrix::getInputHTML(), HTMLFormFieldCloner::getInputHTML(), HTMLFormFieldCloner::getInputHTMLForKey(), HTMLFormFieldCloner::getInputOOUI(), HTMLFormFieldCloner::getInputOOUIForKey(), HTMLFormField::getLabelHtml(), SkinTemplateTest::getMockOutputPage(), LoginSignupSpecialPage::getPageHtml(), MessageContent::getParserOutput(), HTMLFormField::getRaw(), Article::getRedirectHeaderHtml(), HTMLCheckMatrix::getTableRow(), HTMLFormField::getTableRow(), ForeignAPIRepo::httpGetCached(), ImageGalleryBase::insert(), Xml::isWellFormedXmlFragment(), DummyLinker::link(), Linker::link(), DummyLinker::linkKnown(), Linker::linkKnown(), Skin::makeFooterIcon(), DummyLinker::makeHeadline(), BaseTemplate::makeLink(), BaseTemplate::makeListItem(), DummyLinker::makeMediaLinkFile(), Linker::makeMediaLinkFile(), DummyLinker::makeMediaLinkObj(), Linker::makeMediaLinkObj(), LogFormatter::makePageLink(), SkinTemplate::makePersonalToolsList(), DummyLinker::makeSelfLinkObj(), Linker::makeSelfLinkObj(), Html::messageBox(), MediaWiki\Widget\Search\SearchFormWidget::optionsHtml(), QueryPage::outputResults(), Installer::parse(), SpecialJavaScriptTest::plainQUnit(), LinkerTest::provideLinkBeginHook(), LinkerTest::provideLinkEndHook(), OldChangesList::recentChangesLine(), LogFormatterTestCase::removeSomeHtml(), MediaWiki\Widget\Search\DidYouMeanWidget::render(), MediaWiki\Widget\Search\FullSearchResultWidget::render(), Parser::renderImageGallery(), MWExceptionRenderer::reportOutageHTML(), Linker::revDeleteLink(), Linker::revDeleteLinkDisabled(), MediaWiki\Linker\LinkRenderer::runLegacyBeginHook(), OutputPage::setDisplayTitle(), MediaWiki\Widget\Search\SearchFormWidget::shortDialogHtml(), WebInstaller::showHelpBox(), FileDuplicateSearchPage::showList(), WebInstaller::showMessage(), SpecialTags::showTagList(), Sanitizer::stripAllTags(), Parser::stripOuterParagraph(), Html::successBox(), EnhancedChangesListTest::testBeginRecentChangesList_html(), EnhancedChangesListTest::testCategorizationLineFormatting(), EnhancedChangesListTest::testCategorizationLineFormattingWithRevision(), SpecialEditWatchlistTest::testClearPage_hasClearButtonForm(), SpecialEditWatchlistTest::testEditRawPage_hasTitlesBox(), EnhancedChangesListTest::testEndRecentChangesList(), SanitizerTest::testEscapeHtmlAllowEntities(), SpecialBooksourcesTest::testExecute(), SkinTemplateTest::testgetDefaultModules(), HttpErrorTest::testGetHtml(), ListToggleTest::testGetHTML(), StatusTest::testGetHtml(), HTMLFormTest::testGetHTML_empty(), TextContentTest::testGetParserOutput(), MediaWiki\Tests\Revision\RevisionRendererTest::testGetRenderedRevision_current(), MediaWiki\Tests\Revision\RevisionRendererTest::testGetRenderedRevision_master(), MediaWiki\Tests\Revision\RevisionRendererTest::testGetRenderedRevision_new(), MediaWiki\Tests\Revision\RevisionRendererTest::testGetRenderedRevision_old(), MediaWiki\Tests\Revision\RevisionRendererTest::testGetRenderedRevision_privileged(), MediaWiki\Tests\Revision\RevisionRendererTest::testGetRenderedRevision_raw(), MediaWiki\Tests\Revision\RenderedRevisionTest::testGetRevisionParserOutput_archive(), MediaWiki\Tests\Revision\RenderedRevisionTest::testGetRevisionParserOutput_current(), MediaWiki\Tests\Revision\RenderedRevisionTest::testGetRevisionParserOutput_incompleteNoId(), MediaWiki\Tests\Revision\RenderedRevisionTest::testGetRevisionParserOutput_incompleteWithId(), MediaWiki\Tests\Revision\RenderedRevisionTest::testGetRevisionParserOutput_new(), MediaWiki\Tests\Revision\RenderedRevisionTest::testGetRevisionParserOutput_old(), MediaWiki\Tests\Revision\RenderedRevisionTest::testGetRevisionParserOutput_previewWithSelfTransclusion(), MediaWiki\Tests\Revision\RenderedRevisionTest::testGetRevisionParserOutput_privileged(), MediaWiki\Tests\Revision\RenderedRevisionTest::testGetRevisionParserOutput_raw(), SpecialBlankPageTest::testHasWikiMsg(), SpecialLogTest::testInvalidDate(), MediaWiki\Tests\Storage\PageUpdaterTest::testMagicWords(), HTMLAutoCompleteSelectFieldTest::testOptionalSelectElement(), MediaWiki\Tests\Storage\DerivedPageDataUpdaterTest::testPrepareContentInherit(), MediaWiki\Tests\Storage\DerivedPageDataUpdaterTest::testPrepareUpdateOutputReset(), EnhancedChangesListTest::testRecentChangesLine(), EnhancedChangesListTest::testRecentChangesPrefix(), ParserMethodsTest::testRevisionAccess(), SpecialSearchTest::testRewriteQueryWithSuggestion(), SpecialEditWatchlistTest::testRootPage_displaysExplanationMessage(), MediaWiki\Tests\Revision\RenderedRevisionTest::testUpdateRevision(), SpecialWatchlistTest::testUserWithNoWatchedItems_displaysNoWatchlistMessage(), ImagePage::view(), Html::warningBox(), ParserTestPrinter::wellFormed(), PreferencesFormOOUI::wrapForm(), VFormHTMLForm::wrapForm(), OOUIHTMLForm::wrapForm(), HTMLForm::wrapForm(), and SkinTemplate::wrapHTML().

◆ $image

this hook is for auditing only or null if authentication failed before getting that far or null if we can t even determine that probably a stub it is not rendered in wiki pages or galleries in category pages allow injecting custom HTML after the section Any uses of the hook need to handle escaping see BaseTemplate::getToolbox and BaseTemplate::makeListItem for details on the format of individual items inside of this array or by returning and letting standard HTTP rendering take place modifiable or by returning false and taking over the output modifiable modifiable after all normalizations have been except for the $wgMaxImageArea check $image
inline

Definition at line 785 of file hooks.txt.

Referenced by ApiQueryImageInfo::checkParameterNormalise(), MockBitmapHandler::doClientImage(), MockImageHandler::doFakeTransform(), MockBitmapHandler::doTransform(), MockSvgHandler::doTransform(), MockDjVuHandler::doTransform(), BitmapHandler_ClientOnly::doTransform(), TransformationalImageHandler::doTransform(), DjVuHandler::doTransform(), SvgHandler::doTransform(), InitSiteStats::execute(), ImportImages::execute(), DumpUploads::fetchUsed(), RepoGroup::findFile(), RepoGroup::findFiles(), GIFHandler::formatMetadata(), PNGHandler::formatMetadata(), ExifBitmapHandler::formatMetadata(), TransformationalImageHandler::getClientScalingThumbnailImage(), DjVuHandler::getDjVuImage(), ResourceLoaderImageModule::getFileHashes(), MediaHandler::getHandler(), GIFHandler::getImageArea(), ImageHandler::getImageArea(), ResourceLoaderImageModuleTest::getImageMock(), ResourceLoaderImageModule::getImages(), ExifBitmapHandler::getImageSize(), DjVuHandler::getImageSize(), PNGHandler::getLongDesc(), GIFHandler::getLongDesc(), DjVuHandler::getMetadata(), DjVuHandler::getMetaTree(), SearchNearMatcher::getNearMatchInternal(), ImageHandler::getScriptedTransform(), ResourceLoaderImageModule::getStyles(), MediaHandler::getTransform(), PNGHandler::isAnimatedImage(), GIFHandler::isAnimatedImage(), WebPHandler::isAnimatedImage(), ResourceLoader::makeModuleResponse(), ApiQueryImageInfo::mergeThumbParams(), JpegHandler::normaliseParams(), BitmapHandler_ClientOnly::normaliseParams(), TransformationalImageHandler::normaliseParams(), ImageHandler::normaliseParams(), BitmapHandler::normaliseParams(), SvgHandler::normaliseParams(), SvgHandler::normaliseParamsInternal(), ApiQueryDuplicateFiles::run(), ParserTestRunner::setupUploads(), ResourceLoaderImageTest::testGetExtension(), ResourceLoaderImageTest::testGetImageData(), ResourceLoaderImageTest::testGetPath(), ResourceLoaderImageModuleTest::testGetStyleDeclarations(), ResourceLoaderImageTest::testMassageSvgPathdata(), BitmapHandler::transformGd(), BitmapHandler::transformImageMagick(), JpegHandler::transformImageMagick(), BitmapHandler::transformImageMagickExt(), and RandomImageGenerator::writeImageWithApi().

◆ $ldapServer

processing should stop and the error should be shown to the user if you wanted to authenticate users to a custom you could $ldapServer

Definition at line 190 of file hooks.txt.

◆ $link

usually copyright or history_copyright This message must be in HTML not wikitext& $link

Definition at line 3044 of file hooks.txt.

Referenced by LinksUpdate::__construct(), ImageGalleryBase::add(), OutputPage::addHelpLink(), OutputPage::addReturnTo(), Skin::addToSidebarPlain(), RCCacheEntryFactoryTest::assertQueryLink(), SkinTemplate::buildContentNavigationUrls(), OutputPage::buildCssLinksArray(), ProtectionForm::buildForm(), SpecialEditWatchlist::buildRemoveLine(), Article::confirmDelete(), DifferenceEngine::deletedIdMarker(), MovePageForm::doSubmit(), SpecialApiHelp::execute(), DumpLinks::execute(), SpecialNewpages::filterLinks(), ShiConverter::findVariantLink(), SrConverter::findVariantLink(), IuConverter::findVariantLink(), KuConverter::findVariantLink(), StubUserLang::findVariantLink(), KkConverter::findVariantLink(), LanguageConverter::findVariantLink(), Language::findVariantLink(), Linker::formatAutocomments(), ApiParse::formatCategoryLinks(), DateFormatter::formatDate(), ApiParse::formatLangLinks(), MostcategoriesPage::formatResult(), MostinterwikisPage::formatResult(), AncientPagesPage::formatResult(), MostlinkedPage::formatResult(), DeletedContribsPager::formatRevisionRow(), SpecialProtectedtitles::formatRow(), CategoryPager::formatRow(), ContribsPager::formatRow(), ImageListPager::formatValue(), CategoryViewer::generateLink(), MediaWiki\Widget\Search\FullSearchResultWidget::generateMainLinkHtml(), Block::getBlockErrorParams(), Skin::getCategoryLinks(), CreditsAction::getContributors(), Skin::getCopyright(), SpecialUndelete::getFileComment(), SpecialUndelete::getFileLink(), SpecialUndelete::getFileUser(), BaseTemplate::getFooterLinks(), ResourceLoaderModule::getHeaders(), OutputPage::getHeadLinksArray(), ApiHelp::getHelpInternal(), EnhancedChangesList::getLineData(), RevDelArchivedFileItem::getLink(), RevDelFileItem::getLink(), TagLogFormatter::getMessageParameters(), ApiParamInfo::getModuleInfo(), SpecialUndelete::getPageLink(), WebInstaller::getPageListItem(), TablePager::getStartBody(), RevDelFileItem::getUserTools(), HistoryPager::historyLine(), ImagePage::imageDupes(), ImagePage::imageLinks(), ImageGalleryBase::insert(), SpecialWhatLinksHere::listItem(), Linker::makeCommentLink(), Linker::makeExternalLink(), DummyLinker::makeHeadline(), Linker::makeHeadline(), Parser::makeKnownLinkHolder(), BaseTemplate::makeListItem(), LogFormatter::makePageLink(), WebInstallerOptions::makeScreenshotsLink(), ChangesList::maybeWatchedLink(), ImportStreamSource::newFromInterwiki(), ComposerPackageModifier::newMediaWikiLink(), Language::numLink(), ImagePage::openShowImage(), SpecialRecentChanges::optionsPanel(), SpecialSpecialpages::outputPageList(), LanguageConverter::parseCachedTable(), SkinTemplate::prepareQuickTemplate(), SpecialBlock::preText(), OutputPageTest::provideGetCategories(), MediaWiki\Widget\Search\InterwikiSearchResultWidget::render(), MediaWiki\Widget\Search\SimpleSearchResultWidget::render(), MediaWiki\Widget\Search\FullSearchResultWidget::render(), Parser::renderImageGallery(), LinkHolderArray::replaceInternal(), Parser::replaceInternalLinks2(), LinkHolderArray::replaceInterwiki(), Linker::revDeleteLink(), DifferenceEngine::revisionDeleteLink(), HistoryPager::revLink(), Linker::revUserLink(), Linker::revUserTools(), Article::showDeletedRevisionHeader(), DifferenceEngine::showDiffPage(), FileDeleteForm::showForm(), SpecialRevisionDelete::showForm(), SpecialWhatLinksHere::showIndirectLinks(), SpecialAutoblockList::showList(), SpecialBlockList::showList(), Article::showPatrolFooter(), SpecialPrefixindex::showPrefixChunk(), SpecialUndelete::showRevision(), MovePageForm::showSubpagesList(), SpecialUpload::showViewDeletedLinks(), OutputPage::styleLink(), Skin::subPageSubtitle(), ApiMain::substituteResultWithError(), OutputPageTest::testAddLink(), MediaWiki\Auth\AuthManagerTest::testAuthentication(), LinkRendererTest::testMergeAttribs(), BlockListPagerTest::testPreprocessResults(), TraditionalImageGallery::toHTML(), SpecialUndelete::undelete(), and CreditsAction::userLink().

◆ $linkRenderer

null means default in associative array with keys and values unescaped Should be merged with default with a value of false meaning to suppress the attribute in associative array with keys and values unescaped just before the function returns a value If you return an< a > element with HTML attributes $attribs and contents $html will be returned If you return $ret will be returned $linkRenderer

Definition at line 1997 of file hooks.txt.

Referenced by UploadForm::__construct(), OutputPage::addCategoryLinks(), OutputPage::addReturnTo(), OutputPage::buildBacklinkSubtitle(), ProtectionForm::buildForm(), SpecialPageFactory::capturePath(), MediaWiki\Special\SpecialPageFactory::capturePath(), MediaWiki\Linker\LinkRendererFactory::createForUser(), MediaWiki\Linker\LinkRendererFactory::createFromLegacyOptions(), LinkHolderArray::doVariants(), SpecialPageFactory::executePath(), MediaWiki\Special\SpecialPageFactory::executePath(), DeletedContribsPager::formatRevisionRow(), ContribsPager::formatRow(), BlockListPager::formatValue(), AllMessagesTablePager::formatValue(), ImageListPager::formatValue(), CategoryViewer::generateLink(), InfoAction::getContributors(), Preferences::getDefaultPreferencesFactory(), HistoryAction::getDescription(), RevisionItem::getDiffLink(), MWGrants::getGrantsLink(), RevisionItem::getRevisionLink(), LogPage::getTitleLink(), HistoryPager::lastLink(), Linker::link(), InfoAction::pageInfo(), CategoryViewer::pagingLinks(), MarkpatrolledAction::preText(), LinkHolderArray::replaceInternal(), LinkHolderArray::replaceInterwiki(), ImportReporter::reportPage(), MediaWiki\Widget\Search\DidYouMeanWidget::rewrittenHtml(), FileDeleteForm::showForm(), OutputPage::showPermissionsErrorPage(), LinkRendererFactoryTest::testCreateForUser(), LinkRendererFactoryTest::testCreateFromLegacyOptions(), LinkRendererTest::testGetLinkClasses(), LinkRendererTest::testMakeBrokenLink(), LinkRendererTest::testMakeKnownLink(), LinkRendererTest::testMakeLink(), and LinkRendererTest::testMergeAttribs().

◆ $linksUpdate

either a unescaped string or a HtmlArmor object after in associative array form externallinks including delete and has completed for all link tables & $linksUpdate

◆ $localize

namespace are movable Hooks may change this value to override the return value of MWNamespace::isMovable (). 'NewDifferenceEngine' if it s text intended for display in a monospaced font $localize

Definition at line 2332 of file hooks.txt.

◆ $mimeMagic

configuration should be added through ResourceLoaderGetConfigVars instead can be used to get the real title e g db for database replication lag or jobqueue for job queue size converted to pseudo seconds It is possible to add more fields and they will be returned to the user in the API response after the basic globals have been set but before ordinary actions take place or wrap services the preferred way to define a new service is the $wgServiceWiringFiles array change it to the message you want to define you are encouraged to submit patches to MediaWiki s core to add new MIME types to mime types $mimeMagic
static

Definition at line 2222 of file hooks.txt.

Referenced by File::checkExtensionCompatibility().

◆ $name

this hook is for auditing only RecentChangesLinked and Watchlist Do not use this to implement individual filters if they are compatible with the ChangesListFilter and ChangesListFilterGroup structure use sub classes of those in conjunction with the ChangesListSpecialPageStructuredFilters hook This hook can be used to implement filters that do not implement that or custom behavior that is not an individual filter $name
inline

Definition at line 276 of file hooks.txt.

Referenced by RedisConnRef::__call(), StubObject::__call(), LessTestSuite::__construct(), RefreshLinksPartitionTest::__construct(), LinksUpdateTest::__construct(), ParserTestFileSuite::__construct(), JobQueueTest::__construct(), ApiQueryRecentChangesIntegrationTest::__construct(), ApiQueryWatchlistIntegrationTest::__construct(), EnhancedChangesListTest::__construct(), WikiPageDbTestBase::__construct(), SpecialChangeCredentials::__construct(), OldChangesListTest::__construct(), RevisionDbTestBase::__construct(), RCCacheEntryFactoryTest::__construct(), MostrevisionsPage::__construct(), UnusedCategoriesPage::__construct(), LongPagesPage::__construct(), UnusedimagesPage::__construct(), IncludableSpecialPage::__construct(), UnlistedSpecialPage::__construct(), LonelyPagesPage::__construct(), DeadendPagesPage::__construct(), WantedPagesPage::__construct(), UncategorizedImagesPage::__construct(), UncategorizedTemplatesPage::__construct(), XmlSelect::__construct(), FewestrevisionsPage::__construct(), MostimagesPage::__construct(), MostinterwikisPage::__construct(), UncategorizedPagesPage::__construct(), UnusedtemplatesPage::__construct(), WithoutInterwikiPage::__construct(), AncientPagesPage::__construct(), DoubleRedirectsPage::__construct(), WantedFilesPage::__construct(), BrokenRedirectsPage::__construct(), DeprecatedGlobal::__construct(), ListredirectsPage::__construct(), MIMEsearchPage::__construct(), MostlinkedTemplatesPage::__construct(), ShortPagesPage::__construct(), WantedTemplatesPage::__construct(), ListDuplicatedFilesPage::__construct(), MostcategoriesPage::__construct(), WantedCategoriesPage::__construct(), SpecialGoToInterwiki::__construct(), MostlinkedPage::__construct(), MostlinkedCategoriesPage::__construct(), RandomPage::__construct(), UncategorizedCategoriesPage::__construct(), UnwatchedpagesPage::__construct(), PageArchiveTestBase::__construct(), CommandLineInc::__construct(), FileDuplicateSearchPage::__construct(), QueryAllSpecialPagesTest::__construct(), LinkSearchPage::__construct(), SpecialRecentChanges::__construct(), MediaStatisticsPage::__construct(), MediaWiki\Auth\CreatedAccountAuthenticationRequest::__construct(), ApiContinuationManager::__construct(), SpecialAllPages::__construct(), ResourceLoaderImage::__construct(), NamespaceAwareForeignTitleFactory::__construct(), SpecialPagesWithProp::__construct(), PoolCounterWorkViaCallback::__construct(), SpecialRandomInCategory::__construct(), MemcLockManager::__construct(), FileOp::__construct(), LoginSignupSpecialPage::__construct(), Wikimedia\Rdbms\DatabaseMysqlBase::__construct(), RecompressTracked::__construct(), ChangesListSpecialPage::__construct(), SpecialRedirectToSpecial::__construct(), SpecialPage::__construct(), MediaWikiTestCase::__construct(), RedirectSpecialArticle::__construct(), GlobalDependency::__construct(), MainConfigDependency::__construct(), ConstantDependency::__construct(), Wikimedia\Rdbms\Database::__construct(), LinkHolderArray::__destruct(), Parser::__destruct(), Language::__destruct(), __get(), Status::__get(), JSNode::__get(), __set(), Status::__set(), JSNode::__set(), ForeignTitle::__toString(), TitleValue::__toString(), StubObject::_call(), DummyLinker::accesskey(), Linker::accesskey(), MediaWiki\Storage\NameTableStore::acquireId(), EmailNotification::actuallyNotifyOnPageChange(), MagicWordArray::add(), FormOptions::add(), MediaWiki\Config\ConfigRepository::add(), MigrateActors::addActorsForRows(), TestFileReader::addArticle(), ParserTestRunner::addArticle(), ApiResult::addContentField(), ApiResult::addContentValue(), ApiContinuationManager::addContinueParam(), ApiContinuationManager::addGeneratorContinueParam(), ApiContinuationManager::addGeneratorNonContinueParam(), OutputPage::addHeadItem(), HTMLForm::addHiddenField(), HTMLForm::addHiddenFields(), ParserOutput::addImage(), OutputPage::addMeta(), MediaHandler::addMeta(), ApiModuleManager::addModule(), ApiModuleManager::addModules(), PHPUnitMaintClass::addOption(), Maintenance::addOption(), ApiQueryBase::addOption(), ExternalUserNames::addPrefix(), TestFileReader::addRequirement(), InfoAction::addRow(), ContentHandler::addSearchField(), MediaWiki\Services\ServiceContainer::addServiceManipulator(), DatabaseUpdater::addTable(), ApiResult::addValue(), ApiPageSet::addValues(), OutputPage::addWikiMsg(), OutputPage::addWikiMsgArray(), SVGReader::animateFilterAndLang(), ApiQuerySiteinfo::appendInstalledLibraries(), ApiQuerySiteinfo::appendLanguages(), ApiQuerySiteinfo::appendSkins(), ApiQuerySiteinfo::appendSubscribedHooks(), CleanupImages::appendTitle(), ExternalUserNames::applyPrefix(), MediaWiki\Services\ServiceContainer::applyWiring(), UserMailer::arrayToHeaderString(), MediaWiki\Tests\Maintenance\DumpTestCase::assertDumpEnd(), MediaWiki\Tests\Maintenance\DumpTestCase::assertNodeEnd(), MediaWiki\Tests\Maintenance\DumpTestCase::assertNodeStart(), MWHttpRequestTestCase::assertNotHasCookie(), MediaWiki\Tests\Maintenance\DumpTestCase::assertPageStart(), MediaWiki\Auth\AuthManagerTest::assertResponseEquals(), MediaWiki\Tests\Maintenance\DumpTestCase::assertTextNode(), Wikimedia\Rdbms\DatabaseSqlite::attachDatabase(), Xml::attrib(), SearchEngine::augmentSearchResults(), CodeCleanerGlobalsPass::beforeTraverse(), Benchmarker::bench(), Parser::braceSubstitution(), SpecialRevisionDelete::buildCheckBoxes(), BatchRowIterator::buildConditions(), OutputPage::buildExemptModules(), MysqlInstaller::buildFullUserName(), CleanupImages::buildSafeTitle(), MediaWiki\EditPage\TextboxBuilder::buildTextboxAttribs(), EditPage::buildTextboxAttribs(), MediaWiki\HeaderCallback::callback(), CentralIdLookup::centralIdFromName(), CheckStorage::check(), Xml::check(), Html::check(), NamespaceDupes::checkAll(), Revision\RevisionStore::checkContent(), UserDupes::checkDupes(), DatabaseInstaller::checkExtension(), FindOrphanedFiles::checkFiles(), Xml::checkLabel(), OutputPage::checkLastModified(), NamespaceDupes::checkLinkTable(), NamespaceDupes::checkNamespace(), PreprocessDump::checkOptions(), Title::checkReadPermissions(), Maintenance::checkRequiredExtensions(), Skin::checkTitle(), CleanupUsersWithNoId::cleanup(), Hooks::clear(), WebResponse::clearCookie(), LockManagerGroup::config(), FileBackendGroup::config(), FormOptions::consumeValue(), FormOptions::consumeValues(), MediaWiki\Auth\AuthManager::continueAccountCreation(), UploadFromChunks::continueChunks(), Parser::createAssocArgs(), HTMLFormFieldCloner::createFieldsForKey(), User::createNew(), RefreshLinksJobTest::createPage(), ApiMoveTest::createPage(), ParserTestRunner::createRepoGroup(), MediaWiki\Services\ServiceContainer::createService(), Installer::createSysop(), ChangesListSpecialPageTest::createUsers(), ImagePage::createXmlOptionStringForLanguage(), SpecialWatchlist::cutoffselector(), MediaWikiMediaTestCase::dataFile(), Sanitizer::decodeEntity(), JobQueueAggregatorRedis::decodeQueueName(), JobQueueRedis::decodeQueueName(), MediaWiki\Tests\Storage\DerivedPageDataUpdaterTest::defineMockContentModelForUpdateTesting(), WikiPageDbTestBase::defineMockContentModelForUpdateTesting(), MediaWiki\Services\ServiceContainer::defineService(), FormOptions::delete(), UploadFromUrlTest::deleteFile(), Maintenance::deleteOption(), MediaWiki\Services\ServiceContainer::destroy(), MediaWiki\Services\ServiceContainer::disableService(), MediaWiki\MediaWikiServices::disableStorageBackend(), OutputPageTest::doCategoryLinkAsserts(), MediaWiki\Tidy\RemexCompatMunger::doctype(), Installer::doGenerateKeys(), SpecialRecentChanges::doHeader(), MysqlUpdater::doPagelinksUpdate(), UserCache::doQuery(), GenderCache::doQuery(), DatabaseUpdater::doTable(), ApiLoginTest::doUserLogin(), MediaWiki\Tidy\RemexCompatFormatter::element(), XmlTypeCheck::elementClose(), XmlTypeCheck::elementOpen(), ApiBase::encodeParamName(), TextPassDumper::endElement(), RemexStripTagHandler::endTag(), DeprecatedInterfaceFinder::enterNode(), FileRepo::enumFilesInStorage(), Installer::envCheckCache(), Installer::envCheckDB(), UserDupes::examine(), CheckComposerLockUpToDate::execute(), WebInstallerOptions::execute(), ApiEditPage::execute(), DatabaseLag::execute(), NukePage::execute(), AttachLatest::execute(), ApiQueryUserContribs::execute(), PHPUnitMaintClass::execute(), GenerateNormalizerDataAr::execute(), PopulateCategory::execute(), ConvertExtensionToRegistration::execute(), ParserTestsMaintenance::execute(), GetConfiguration::execute(), DeferredUpdates::execute(), MediaWiki\Special\SpecialPageFactory::executePath(), ParserTestRunner::executeSetupSnippets(), SpecialPageFactory::exists(), Action::exists(), MediaWiki\Special\SpecialPageFactory::exists(), Xml::expandAttributes(), XmlTypeCheck::expandNS(), ExtensionRegistry::exportExtractedData(), QuickTemplate::extend(), Parser::extensionSubstitution(), SpecialRevisionDelete::extractBitParams(), ExtensionProcessor::extractCredits(), ApiQueryRevisionsBase::extractDeprecatedContent(), ExtensionProcessor::extractHooks(), ExtensionProcessor::extractInfo(), ExtensionProcessor::extractMessagesDirs(), BatchRowIterator::extractPrimaryKeys(), ApiBase::extractRequestParams(), ExtensionProcessor::extractResourceLoaderModules(), SiteStatsUpdate::factory(), UserrightsPage::fetchUser(), FormOptions::fetchValuesFromRequest(), Wikimedia\Rdbms\Database::fieldNameWithAlias(), TitleCleanup::fileExists(), CleanupImages::filePath(), CoreParserFunctions::filepath(), GetConfiguration::finalSetup(), ExecutableFinder::findExecutable(), RepoGroup::findFiles(), ExecutableFinder::findInDefaultPaths(), OldChangesList::formatChangeLine(), ApiAuthManagerHelper::formatFields(), SkinTemplate::formatLanguageName(), ApiParse::formatLimitReportData(), SvgHandler::formatMetadata(), MediaHandler::formatMetadataHelper(), LogFormatter::formatParameterValueForApi(), TablePager::formatRow(), NewFilesPager::formatRow(), ApiRsd::formatRsdApiList(), BlockListPager::formatValue(), ImageListPager::formatValue(), ParserFuzzTest::fuzzTest(), LocalSettingsGenerator::generateExtEnableLine(), MultiConfig::get(), GlobalVarConfig::get(), HashConfig::get(), MediaWiki\Config\ConfigRepository::get(), QuickTemplate::get(), EtcdConfig::get(), LockManagerGroup::get(), FileBackendGroup::get(), BaseTemplate::getAfterPortlet(), MediaWiki\Special\SpecialPageFactory::getAliasList(), FormOptions::getAllValues(), WebRequest::getArray(), XmlSelect::getAttribute(), ExtensionRegistry::getAttribute(), RecentChange::getAttribute(), XmlTypeCheck::getAttributesArray(), SiteImporter::getAttributeValue(), MagicWordArray::getBaseRegex(), Wikimedia\Http\HttpAcceptNegotiator::getBestSupportedKey(), MessageBlobStore::getBlobs(), WebRequest::getBool(), JobQueueGroup::getCachedConfigVar(), Skin::getCachedNotice(), MWNamespace::getCanonicalIndex(), User::getCanonicalName(), ApiQueryAllUsers::getCanonicalUserName(), LinksUpdate::getCategoryInsertions(), ApiQueryUserInfo::getCentralUserInfo(), FormOptions::getChangedValues(), WebRequest::getCheck(), ApiMain::getCheck(), DatabaseInstaller::getCheckBox(), EditPage::getCheckboxesWidget(), PPNode_Hash_Tree::getChildrenOfType(), SiteImporter::getChildText(), SvgHandler::getCommonMetaArray(), SiteConfiguration::getConfig(), FauxRequest::getCookie(), FauxResponse::getCookie(), FauxResponse::getCookieData(), HTMLFormFieldCloner::getCreateButtonHtml(), MultiHttpClient::getCurlHandle(), ResourceLoaderClientHtml::getData(), Title::getDefaultMessageText(), HTMLFormFieldCloner::getDeleteButtonHtml(), MediaWiki\Config\ConfigRepository::getDescriptionOf(), FileRepo::getDescriptionRenderUrl(), FileRepo::getDescriptionUrl(), Language::getDurationIntervals(), FormatJsonTest::getEncodeTestCases(), Timing::getEntryByName(), MediaWikiPHPUnitTestListener::getErrorName(), AvroValidator::getErrors(), ApiQueryLinks::getExamplesMessages(), ApiQueryAllLinks::getExamplesMessages(), ApiQueryBacklinksprop::getExamplesMessages(), SpecialUpload::getExistsWarning(), FormatMetadata::getExtendedMetadataFromFile(), Installer::getExtensionInfo(), SpecialVersion::getExternalLibraries(), Revision\SlotRecord::getField(), MediaWiki\Storage\NameTableStore::getFieldsToStore(), SpecialPage::getFinalGroupName(), ApiBase::getFinalParamDescription(), WebRequest::getFloat(), SpecialContributions::getForm(), MediaWiki\Preferences\DefaultPreferencesFactory::getForm(), MediaWiki\Logger\MonologSpi::getFormatter(), SpecialPageLanguage::getFormFields(), WebRequest::getFuzzyBool(), ApiPageSet::getGenerators(), JobQueueRedis::getGlobalKey(), WebRequest::getGPCVal(), MediaHandler::getHandler(), MediaWiki\Logger\MonologSpi::getHandler(), Hooks::getHandlers(), MagicWordArray::getHash(), FileRepo::getHashPath(), FileRepo::getHashPathForLevel(), DerivativeRequest::getHeader(), WebResponse::getHeader(), WebRequest::getHeader(), MWHttpRequest::getHeaderList(), ApiHelp::getHelpInternal(), ApiQueryAllLinks::getHelpUrls(), ApiQueryBacklinksprop::getHelpUrls(), TablePager::getHiddenFields(), MediaWiki\Storage\NameTableStore::getId(), Linker::getImageLinkMTOParams(), Parser::getImageParams(), CategoryViewer::getImageSection(), XhprofData::getInclusiveMetrics(), HTMLSelectField::getInputHTML(), HTMLFormFieldCloner::getInputHTMLForKey(), HTMLFormFieldCloner::getInputOOUIForKey(), WebRequest::getInt(), WebRequest::getIntArray(), Revision\SlotRecord::getIntField(), WebRequest::getIntOrNull(), Linker::getInvalidTitleDescription(), WebInstallerLanguage::getLanguageSelector(), Wikimedia\Rdbms\Database::getLBInfo(), TablePager::getLimitDropdown(), TablePager::getLimitSelect(), ContentHandler::getLocalizedName(), SpecialPageFactory::getLocalNameFor(), MediaWiki\Special\SpecialPageFactory::getLocalNameFor(), Wikimedia\Rdbms\DatabaseMysqlBase::getMasterPos(), ParserFuzzTest::getMemoryBreakdown(), PNGMetadataExtractor::getMetadata(), ParserMethodsTest::getMockTitle(), ResourceLoader::getModule(), ApiParamInfo::getModuleInfo(), MessageCache::getMsgFromNamespace(), WebRequestUpload::getName(), ResourceLoaderImage::getName(), FileRepo::getName(), PPNode_Hash_Tree::getName(), PPNode_Hash_Attr::getName(), ApiQuery::getNamedDB(), FileRepo::getNameFromTitle(), ApiModuleManager::getNames(), Language::getNamespaceAliases(), MediaWiki\Widget\NamespaceInputWidget::getNamespaceDropdownOptions(), Language::getNamespaceIds(), MediaWikiTitleCodec::getNamespaceName(), ApiModuleManager::getNamesWithClasses(), HTMLFormField::getNearestFieldByName(), ParserOptions::getOption(), Maintenance::getOption(), MediaWiki\Preferences\DefaultPreferencesFactory::getOptionFromUser(), User::getOptionKinds(), SpecialStatistics::getOtherStats(), SpecialPageFactory::getPage(), MediaWiki\Special\SpecialPageFactory::getPage(), Skin::getPageClasses(), WebInstaller::getPageListItem(), SpecialExport::getPagesFromCategory(), CategoryViewer::getPagesSection(), FileOp::getParam(), RecentChange::getParam(), ApiBase::getParameterFromSettings(), ParserTestRunner::getParserTestFiles(), DatabaseInstaller::getPasswordBox(), MediaWiki\Logger\MonologSpi::getProcessor(), OutputPage::getProperty(), ParserOutput::getProperty(), LinksUpdate::getPropertyInsertions(), MediaWiki\Session\ImmutableSessionProviderWithCookieTest::getProvider(), MediaWiki\Session\BotPasswordSessionProviderTest::getProvider(), MediaWiki\Session\SessionManager::getProvider(), WebRequest::getRawVal(), MediaWiki\Special\SpecialPageFactory::getRegularPages(), Wikimedia\Rdbms\DatabaseMysqlBase::getReplicaPos(), RepoGroup::getRepoByName(), MediaWiki\Special\SpecialPageFactory::getRestrictedPages(), HistoryPager::getRevisionButton(), OutputPage::getRlClient(), SpecialPage::getSafeTitleFor(), OracleInstaller::getSchemaVars(), Wikimedia\Rdbms\LoadBalancer::getServerName(), MediaWiki\Services\ServiceContainer::getService(), WebInstaller::getSession(), ApiAuthManagerHelper::getStandardParams(), TablePager::getStartBody(), Revision\SlotRecord::getStringField(), ApiStructureTest::getSubModulePaths(), HTMLHiddenField::getTableRow(), FileRepo::getTempHashPath(), ResourceLoaderImageTest::getTestImage(), MediaWikiPHPUnitTestListener::getTestName(), FauxRequest::getText(), WebRequest::getText(), DatabaseInstaller::getTextBox(), ForeignAPIRepo::getThumbError(), ForeignAPIRepo::getThumbUrl(), ForeignAPIRepo::getThumbUrlFromCache(), SpecialPage::getTitleFor(), MediaWiki\Special\SpecialPageFactory::getTitleForAlias(), LogPage::getTitleLink(), SpecialPage::getTitleValueFor(), ApiTokens::getTokenTypes(), FormOptions::getUnconsumedValues(), ApiMain::getUpload(), MediaWiki\Special\SpecialPageFactory::getUsablePages(), RevDelFileItem::getUserTools(), WebRequest::getVal(), ApiMain::getVal(), FormOptions::getValue(), MediaWiki\Config\ConfigRepository::getValueOf(), WebRequest::getValues(), Installer::getVar(), Language::getVariantname(), FileRepo::getVirtualUrl(), SiteConfiguration::getWikiParams(), GlobalVarConfig::getWithPrefix(), UserrightsPage::groupCheckboxes(), ConvertExtensionToRegistration::handleCredits(), ConvertExtensionToRegistration::handleResourceModules(), MediaWiki\Config\ConfigRepository::has(), GlobalVarConfig::has(), MultiConfig::has(), HashConfig::has(), EtcdConfig::has(), SiteImporter::hasChild(), Wikimedia\Rdbms\DatabasePostgres::hasConstraint(), Revision\SlotRecord::hasField(), OutputPage::hasHeadItem(), Maintenance::hasOption(), MediaWiki\Services\ServiceContainer::hasService(), Title::hasSourceText(), GlobalVarConfig::hasWithPrefix(), Html::hidden(), User::idFromName(), CleanupImages::imageExists(), RequestContext::importScopedSession(), WebInstallerExistingWiki::importVariables(), MediaWiki\Services\ServiceContainer::importWiring(), WebRequest::initHeaders(), UploadFromFile::initialize(), UploadFromStash::initialize(), UploadFromUrl::initialize(), UploadBase::initializePathInfo(), Xml::input(), Html::input(), Xml::inputLabel(), Xml::inputLabelSep(), ApiModuleManager::instantiateModule(), LinksUpdate::invalidateProperties(), User::isCreatableName(), GlobalDependency::isExpired(), ResourceLoader::isFileModule(), User::isIP(), ExtensionRegistry::isLoaded(), MessageCache::isMainCacheable(), ResourceLoader::isModuleRegistered(), Wikimedia\Rdbms\DatabaseMysqlBase::isQuotedIdentifier(), Wikimedia\Rdbms\DatabaseMssql::isQuotedIdentifier(), Wikimedia\Rdbms\Database::isQuotedIdentifier(), Hooks::isRegistered(), MediaWiki\Services\ServiceContainer::isServiceDisabled(), Title::isSpecial(), User::isUsableName(), User::isValidUserName(), Wikimedia\Rdbms\DatabaseMysqlBase::isView(), EditPage::isWrongCaseUserConfigPage(), CleanupImages::killRow(), Xml::languageSelector(), LogPager::limitPerformer(), LogPager::limitTitle(), ApiParamInfo::listAllSubmodules(), Xml::listDropDown(), HTMLForm::loadData(), User::loadDefaults(), User::loadFromCache(), MessageCache::loadFromDB(), MediaWiki\Preferences\DefaultPreferencesFactory::loadPreferenceValues(), CentralIdLookup::localUserFromCentralId(), ProfilerOutputDb::log(), BotPassword::login(), ApiMain::logRequest(), SkinTemplate::makeArticleUrlDetails(), Wikimedia\Rdbms\DatabasePostgres::makeConnectionString(), Skin::makeI18nUrl(), Skin::makeInternalOrExternalUrl(), Skin::makeKnownUrlDetails(), ResourceLoaderClientHtml::makeLoad(), ResourceLoader::makeModuleResponse(), FiltersTest::makeMultiUsernameFilter(), Title::makeName(), Skin::makeNSUrl(), PageDataRequestHandlerTest::makeOutputPage(), WebInstallerOptions::makeScreenshotsLink(), SkinFactory::makeSkin(), Skin::makeSpecialUrl(), Skin::makeSpecialUrlSubpage(), SkinTemplate::makeTalkUrlDetails(), MediaWikiTestCase::makeTestConfigFactoryInstantiator(), LinksUpdateTest::makeTitleAndParserOutput(), Skin::makeUrl(), Skin::makeUrlDetails(), ResourceLoader::makeVersionQuery(), ApiFormatXml::mangleName(), MagicWordArray::matchAndRemove(), ParserOptions::matches(), MediaWiki\Auth\AuthenticationRequest::mergeFieldInfo(), MediaWikiTestCase::mergeMwGlobalArrayValue(), ApiQueryImageInfo::mergeThumbParams(), FileRepo::nameForThumb(), CentralIdLookup::namesFromCentralIds(), MediaWiki\Session\UserInfo::newFromName(), Category::newFromName(), User::newFromName(), ContentHandlerTest::newSearchEngine(), User::newSystemUser(), SpecialSearchTest::newUserWithSearchNS(), Linker::normaliseSpecialPage(), Sanitizer::normalizeEntity(), MediaWiki\Storage\NameTableStore::normalizeName(), NamespaceAwareForeignTitleFactory::normalizeNamespaceName(), MultiHttpClient::normalizeRequests(), CoreParserFunctions::numberingroup(), FormOptions::offsetExists(), FormOptions::offsetGet(), FormOptions::offsetSet(), FormOptions::offsetUnset(), SpecialChangeCredentials::onAuthChangeFormFields(), InfoAction::onView(), SpecialVersion::openExtType(), DumpUploads::outputItem(), MediaWikiTestCase::overrideMwServices(), WikiExporter::pageByName(), CleanupImages::pageExists(), WikiExporter::pagesByName(), CoreParserFunctions::pagesincategory(), CookieJar::parseCookieResponseHeader(), ApiQueryRevisionsBase::parseParameters(), Xml::password(), MediaWiki\Services\ServiceContainer::peekService(), Installer::performInstallation(), MediaWiki\Tests\Storage\NameTableStoreTest::populateTable(), MediaWiki\Auth\ThrottlePreAuthenticationProvider::postAuthentication(), SpecialSearch::powerSearch(), MediaWiki\Widget\Search\SearchFormWidget::powerSearchBox(), Title::prefix(), ResourceLoader::preloadModuleInfo(), ApiQueryBlocks::prepareUsername(), ProtectedPagesPager::preprocessResults(), Preprocessor_Hash::preprocessToObj(), Preprocessor_DOM::preprocessToXml(), MediaWiki\Preferences\DefaultPreferencesFactory::profilePreferences(), MediaWikiServicesTest::provideGetService(), MediaWikiServicesTest::provideGetters(), ActorMigrationTest::provideGetWhere(), MediaWiki\Auth\AbstractPrimaryAuthenticationProvider::providerNormalizeUsername(), ApiQueryUserContribsTest::provideSorting(), SpecialPageFatalTest::provideSpecialPages(), MediaWiki\Tests\Storage\NameTableStoreTest::provideTestGetAndAcquireIdNameNormalization(), Wikimedia\Rdbms\Database::qualifiedTableComponents(), Xml::radio(), Html::radio(), Xml::radioLabel(), TestFileReader::read(), ZipDirectoryReader::readCentralDirectory(), Installer::readExtension(), SVGReader::readField(), Wikimedia\Rdbms\LoadBalancer::reallyOpenConnection(), Wikimedia\Rdbms\DatabasePostgres::realTableName(), Wikimedia\Rdbms\DatabaseMssql::realTableName(), Wikimedia\Rdbms\TransactionProfiler::recordQueryCompletion(), ApiFormatXml::recXmlPrint(), ApiFormatXmlRsd::recXmlPrint(), MediaWiki\Services\ServiceContainer::redefineService(), Category::refreshCounts(), Hooks::register(), SkinFactory::register(), LockManagerGroup::register(), FileBackendGroup::register(), ResourceLoader::register(), BackupDumper::registerFilter(), BackupDumper::registerOutput(), HTMLFormFieldCloner::rekeyValuesArray(), Wikimedia\Rdbms\DatabasePostgres::remappedTableName(), ApiResult::removeValue(), BaseTemplate::renderAfterPortlet(), Maintenance::requireExtension(), ParserTestRunner::requireFunctionHook(), ParserTestRunner::requireHook(), ParserTestRunner::requireTransparentHook(), FormOptions::reset(), MediaWiki\Services\ServiceContainer::resetService(), MediaWiki\MediaWikiServices::resetServiceForTesting(), MediaWiki\Special\SpecialPageFactory::resolveAlias(), ResourceLoader::respond(), ApiQueryAllLinks::run(), ParserTestRunner::runTest(), ConfigFactory::salvage(), MediaWiki\Config\ConfigRepository::salvage(), MediaWiki\MediaWikiServices::salvage(), CategoryFinder::scanNextLayer(), EraseArchivedFile::scrubAllVersions(), EraseArchivedFile::scrubVersion(), SearchEngineConfig::searchableNamespaces(), ApiQueryBase::selectNamedDB(), Wikimedia\Rdbms\DatabasePostgres::selectSQLText(), ApiMain::sendCacheHeaders(), QuickTemplate::set(), HashConfig::set(), XmlSelect::setAttribute(), SearchResultSet::setAugmentedData(), ApiResult::setContentField(), ApiResult::setContentValue(), CookieJar::setCookie(), WebResponse::setCookie(), FauxResponse::setCookie(), MWHttpRequest::setCookie(), FauxRequest::setCookies(), MediaWiki::setDBProfilingAgent(), FauxRequest::setHeader(), MWHttpRequest::setHeader(), FauxRequest::setHeaders(), OutputPage::setHTMLTitle(), ApiParse::setIndexedTagNames(), MediaWikiTestCase::setIniSetting(), Wikimedia\Rdbms\Database::setLBInfo(), ParserOutput::setLimitReportData(), HTMLForm::setName(), ParserOptions::setOption(), ParserOptions::setOptionLegacy(), OutputPage::setPageTitle(), Installer::setPassword(), OutputPage::setProperty(), ParserOutput::setProperty(), QuickTemplate::setRef(), CurlHttpRequestTester::setRespHeaders(), PhpHttpRequestTester::setRespHeaders(), MediaWikiTestCase::setService(), WebInstaller::setSession(), HTMLForm::setSubmitName(), HTMLForm::setSubmitTooltip(), Wikimedia\Rdbms\LoadBalancer::setTransactionListener(), Wikimedia\Rdbms\Database::setTransactionListener(), StoreBatchTest::setUp(), BagOStuffTest::setUp(), JobQueueTest::setUp(), FileBackendTest::setUp(), MysqlInstaller::setupUser(), MssqlInstaller::setupUser(), Revision::setUserIdAndName(), RevisionDeleteUser::setUsernameBitfields(), FormOptions::setValue(), ApiResult::setValue(), WebInstallerPage::setVar(), DatabaseInstaller::setVar(), Installer::setVar(), WebInstaller::setVarsFromRequest(), Wikimedia\Rdbms\LBFactory::setWaitForReplicationListener(), ProfilerXhprof::shouldExclude(), OutputPage::showFileDeleteError(), OutputPage::showFileNotFoundError(), SpecialWatchlist::showHideCheck(), EditPage::showTextbox(), OutputPage::showUnexpectedValueError(), UserOptionsMaintenance::showUsageStats(), MediaWiki\Tests\Maintenance\DumpTestCase::skipPastNodeEnd(), BaseDump::skipTo(), MediaWiki\Tests\Maintenance\DumpTestCase::skipToNodeEnd(), SpecialVersion::softwareInformation(), DummyLinker::specialLink(), Linker::specialLink(), PPNode_DOM::splitArg(), UploadBase::splitXmlNamespace(), TextPassDumper::startElement(), RemexStripTagHandler::startTag(), MediaWiki\Storage\NameTableStore::store(), ExtensionProcessor::storeToArray(), UploadBase::stripXmlNamespace(), WebInstallerName::submit(), MediaWiki\Session\CookieSessionProvider::suggestLoginUsername(), Maintenance::supportsOption(), RevisionDeleteUser::suppressUserName(), Wikimedia\Rdbms\DatabaseSqlite::tableName(), DatabaseOracle::tableName(), Wikimedia\Rdbms\DatabasePostgres::tableName(), Wikimedia\Rdbms\DatabaseMssql::tableName(), Wikimedia\Rdbms\Database::tableName(), DatabaseOracle::tableNameInternal(), Wikimedia\Rdbms\Database::tableNames(), Wikimedia\Rdbms\Database::tableNamesN(), CoreParserFunctions::tagObj(), MediaWikiTestCase::tearDown(), ApiModuleManagerTest::testAddModule(), ApiModuleManagerTest::testAddModules(), ServiceContainerTest::testAddServiceManipulator(), ServiceContainerTest::testAddServiceManipulator_fail_in_use(), ServiceContainerTest::testAddServiceManipulator_fail_undefined(), ResourceLoaderTest::testAddSource(), ApiEditPageTest::testAppendInMediaWikiNamespace(), ApiEditPageTest::testAppendInMediaWikiNamespaceWithSerializationError(), ApiEditPageTest::testAppendNewSection(), ApiEditPageTest::testAppendNewSectionWithInvalidContentModel(), ApiEditPageTest::testAppendNewSectionWithSummary(), ApiEditPageTest::testAppendNewSectionWithTitle(), ApiEditPageTest::testAppendNewSectionWithTitleAndSummary(), ApiEditPageTest::testAppendToFirstSection(), ApiEditPageTest::testAppendToNonexistentSection(), ApiEditPageTest::testAppendToSection(), ApiEditPageTest::testAppendWithNonTextContentHandler(), MediaWiki\Auth\AuthManagerTest::testAuthentication(), ApiLoginTest::testBotPasswordThrottled(), ApiParseTest::testCategoriesHtml(), ApiQueryTest::testClassNamesInModuleManager(), ApiMainTest::testClassNamesInModuleManager(), XhprofDataTest::testCompleteMetricsStructure(), SpecialPageFactoryTest::testConflictResolution(), XmlSelectTest::testConstructParameters(), MediaWiki\Auth\AuthManagerTest::testContinueAccountCreation(), ApiEditPageTest::testCorrectContentFormat(), ApiEditPageTest::testCreateImageRedirectAnon(), ApiEditPageTest::testCreateImageRedirectLoggedIn(), ApiEditPageTest::testCreateOnly(), MediaWikiServicesTest::testDefaultServiceInstantiation(), ServiceContainerTest::testDefineService(), ServiceContainerTest::testDefineService_fail_duplicate(), ApiDeleteTest::testDelete(), ApiDeleteTest::testDeleteAbortedByHook(), ApiStashEditTest::testDeletedRevision(), ApiStashEditTest::testDeletedRevisionSection(), ApiDeleteTest::testDeleteUnwatch(), ApiDeleteTest::testDeleteWatch(), ApiDeleteTest::testDeleteWithoutTagPermission(), ApiDeleteTest::testDeleteWithTag(), ApiDeleteTest::testDeleteWithTagNewBackend(), ApiDeleteTest::testDeletionWithoutPermission(), ResourceLoaderFileModuleTest::testDeprecatedModules(), ServiceContainerTest::testDisableService_fail_undefined(), ApiStructureTest::testDocumentationExists(), ApiEditPageTest::testEdit(), ApiEditPageTest::testEdit_redirect(), ApiEditPageTest::testEdit_redirectText(), ApiEditPageTest::testEditAbortedByEditPageHookWithNoResult(), ApiEditPageTest::testEditAbortedByEditPageHookWithResult(), ApiEditPageTest::testEditAbortedByHook(), ApiEditPageTest::testEditAbortedByHookWithCustomOutput(), ApiEditPageTest::testEditAppend(), ApiStashEditTest::testEditConflict(), ApiEditPageTest::testEditConflict(), ApiEditPageTest::testEditConflict_newSection(), ApiEditPageTest::testEditConflict_T43990(), ApiEditPageTest::testEditMalformedSection(), ApiEditPageTest::testEditMinor(), ApiEditPageTest::testEditNewSection(), ApiEditPageTest::testEditRecreate(), ApiEditPageTest::testEditSection(), ApiEditPageTest::testEditUnwatch(), ApiEditPageTest::testEditWatch(), ApiEditPageTest::testEditWhileBlocked(), ApiEditPageTest::testEditWhileReadOnly(), ApiEditPageTest::testEditWithoutTagPermission(), ApiEditPageTest::testEditWithStartTimestamp(), ApiEditPageTest::testEditWithTag(), ApiEditPageTest::testEditWithTagNewBackend(), SpecialPageDataTest::testExecute(), ApiStashEditTest::testExistingPage(), ExtensionRegistryTest::testExportExtractedDataGlobals(), TextContentHandlerTest::testFieldsForIndex(), ApiParseTest::testFollowedRedirect(), ApiParseTest::testFollowedRedirectById(), MediaWiki\Auth\ThrottlePreAuthenticationProvider::testForAuthentication(), ApiParseTest::testFormatCategories(), BlockListPagerTest::testFormatValue(), GlobalVarConfigTest::testGet(), MediaWiki\Tests\Storage\NameTableStoreTest::testGetAndAcquireId(), UserTest::testGetCanonicalName(), ResourceLoaderTest::testGetLoadScript(), ContentHandlerTest::testGetLocalizedName(), SpecialPageFactoryTest::testGetLocalNameFor(), ApiModuleManagerTest::testGetModule(), MediaWikiTitleCodecTest::testGetNamespaceName(), MediaWiki\Tests\Revision\RenderedRevisionTest::testGetRevisionParserOutput_previewWithSelfTransclusion(), ServiceContainerTest::testGetService(), MediaWikiServicesTest::testGetService(), ServiceContainerTest::testGetService_fail_unknown(), ServiceContainerTest::testGetServiceNames(), MediaWikiServicesTest::testGettersAreSorted(), SpecialPageTest::testGetTitleFor(), SpecialPageTest::testGetTitleForWithWarning(), PageDataRequestHandlerTest::testHandleRequest(), ServiceContainerTest::testHasService(), XhprofDataTest::testInclusiveMetricsStructure(), ApiEditPageTest::testIncorrectMd5AppendText(), ApiEditPageTest::testIncorrectMd5PrependText(), ApiEditPageTest::testIncorrectMd5Text(), FileContentHandlerTest::testIndexMapping(), ApiQuerySiteinfoTest::testInstalledLibraries(), ApiStashEditTest::testInterveningEdit(), ParserOptionsTest::testIsSafeToCache(), ApiQuerySiteinfoTest::testLanguages(), CentralIdLookupTest::testLocalUserFromCentralId(), ApiEditPageTest::testMd5AppendText(), ApiEditPageTest::testMd5PrependAndAppendText(), ApiEditPageTest::testMd5PrependText(), ApiEditPageTest::testMd5Text(), MediaWiki\Auth\AuthenticationRequestTest::testMergeFieldInfo(), ExifRotationTest::testMetadata(), ExifRotationTest::testMetadataAutoRotate(), ExifRotationTest::testMetadataAutoRotateUnsupported(), ExifRotationTest::testMetadataNoAutoRotate(), ApiEditPageTest::testMismatchedContentFormat(), ApiMoveTest::testMove(), ApiMoveTest::testMoveById(), ApiMoveTest::testMoveNoPermission(), ApiMoveTest::testMoveSubpages(), ApiMoveTest::testMoveSubpagesError(), ApiMoveTest::testMoveTalk(), ApiMoveTest::testMoveTalkFailed(), ApiMoveTest::testMoveToInvalidPageName(), MultiHttpClientTest::testMultiHttpClientHeaders(), ApiEditPageTest::testNoCreate(), ApiStashEditTest::testNonexistentBaseRevId(), ApiParseTest::testNoPst(), ApiParseTest::testOnlyPst(), ParserOptionsTest::testOptionsHash(), ApiStashEditTest::testPageWithNoRevisions(), ServiceContainerTest::testPeekService_fail_unknown(), ApiMoveTest::testPingLimiter(), ApiPrefixUniquenessTest::testPrefixes(), TemplateParserTest::testProcessTemplate(), ApiEditPageTest::testProhibitedAnonymousEdit(), ApiEditPageTest::testProhibitedChangeContentModel(), MediaWiki\Auth\AbstractPrimaryAuthenticationProviderTest::testProviderNormalizeUsername(), MediaWiki\Session\CookieSessionProviderTest::testProvideSessionInfo(), ApiParseTest::testPst(), ServiceContainerTest::testRedefineService(), ServiceContainerTest::testRedefineService_disabled(), ServiceContainerTest::testRedefineService_fail_in_use(), ServiceContainerTest::testRedefineService_fail_undefined(), SpecialPageFactoryTest::testResolveAlias(), ApiEditPageTest::testReversedUndoAfter(), ExifRotationTest::testRotationRendering(), ExifRotationTest::testRotationRenderingNoAutoRotate(), FileBackendTest::testSanitizeOpHeaders(), SearchEngineTest::testSearchIndexFields(), ApiParseTest::testSection(), ApiParseTest::testSectionNoContent(), ApiMoveTest::testSelfMove(), RevisionTest::testSetUserIdAndName(), ApiQuerySiteinfoTest::testSkins(), ApiEditPageTest::testSupportsDirectApiEditing_withContentHandlerOverride(), ApiMoveTest::testSuppressRedirect(), ApiMoveTest::testSuppressRedirectNoPermission(), ApiMoveTest::testTagsNoPermission(), UploadTestHandler::testTitleValidation(), ApiParseTest::testTitleWithNonMatchingRevId(), ApiEditPageTest::testTooBigEdit(), MailAddressTest::testToString(), ApiEditPageTest::testUndoAfterContentModelChange(), ApiEditPageTest::testUndoAfterToHiddenRev(), ApiEditPageTest::testUndoAfterToInvalidRev(), ApiEditPageTest::testUndoAfterToRevFromDifferentPage(), ApiEditPageTest::testUndoToInvalidRev(), ApiEditPageTest::testUndoToRevFromDifferentPage(), ApiEditPageTest::testUndoWithConflicts(), ApiEditPageTest::testUndoWithSwappedRevisions(), ApiParseTest::testUnfollowedRedirect(), ImportTest::testUnknownUserHandling(), ApiEditPageTest::testUnsupportedContentFormat(), DatabaseSqliteTest::testUpgrades(), GlobalWithDBTest::testWfIsBadImage(), Xml::textarea(), Html::textarea(), DummyLinker::titleAttrib(), Linker::titleAttrib(), DummyLinker::tooltip(), Linker::tooltip(), DummyLinker::tooltipAndAccesskeyAttribs(), Linker::tooltipAndAccesskeyAttribs(), Wikimedia\Rdbms\TransactionProfiler::transactionWritingIn(), Wikimedia\Rdbms\TransactionProfiler::transactionWritingOut(), MediaWiki::tryNormaliseRedirect(), ParserOutput::unsetProperty(), ApiResult::unsetValue(), RevisionDeleteUser::unsuppressUserName(), RecentChangesUpdateJob::updateActiveUsers(), SectionProfiler::updateEntry(), UpdateExtensionJsonSchema::updateTo2(), MediaWiki\Auth\AuthManagerAuthPlugin::userExists(), SpecialEmailUser::userForm(), SearchEngineConfig::userNamespaces(), XmlTypeCheck::validate(), FormOptions::validateBounds(), CliInstaller::validateExtensions(), FormOptions::validateIntBounds(), FormOptions::validateName(), ImageHandler::validateParam(), JpegHandler::validateParam(), BitmapHandler::validateParam(), DjVuHandler::validateParam(), SvgHandler::validateParam(), ApiBase::validateUser(), wfArrayPlus2d(), wfIsBadImage(), wfStripIllegalFilenameChars(), SpecialWhatLinksHere::whatlinkshereForm(), and OutputPage::wrapWikiMsg().

◆ $namespaces

◆ $newminor

also included in $newHeader if any $newminor

Definition at line 1280 of file hooks.txt.

Referenced by DifferenceEngine::showDiffPage().

◆ $newtalks

the value of this variable comes from LanguageConverter indexed by page_id indexed by prefixed DB keys on which the links will be shown can modify can modify can modify this should be populated with an alert message to that effect $newtalks

Definition at line 1690 of file hooks.txt.

Referenced by Skin::getNewtalks().

◆ $oldminor

passed in as a query string parameter to the various URLs constructed here (i.e. $nextlink) $rdel also included in $oldHeader $oldminor

Definition at line 1284 of file hooks.txt.

Referenced by DifferenceEngine::showDiffPage().

◆ $options

null means default in associative array with keys and values unescaped Should be merged with default with a value of false meaning to suppress the attribute in associative array with keys and values unescaped& $options

Definition at line 1997 of file hooks.txt.

Referenced by ResourceLoaderLessVarFileModule::__construct(), MediaWiki\Tidy\RemexCompatFormatter::__construct(), ResourceLoaderOOUIFileModule::__construct(), MediaWiki\Widget\ExpiryInputWidget::__construct(), SquidPurgeClientPool::__construct(), Wikimedia\Rdbms\LoadMonitorMySQL::__construct(), ParserTestPrinter::__construct(), UploadForm::__construct(), StripState::__construct(), MappedIterator::__construct(), CliInstaller::__construct(), PasswordFactory::__construct(), TestFileReader::__construct(), Wikimedia\Rdbms\LoadMonitor::__construct(), RandomImageGenerator::__construct(), ProfilerXhprof::__construct(), ResourceLoaderWikiModule::__construct(), MWHttpRequest::__construct(), ResourceLoaderTestModule::__construct(), ResourceLoaderImageModule::__construct(), RecompressTracked::__construct(), XmlTypeCheck::__construct(), Block::__construct(), ZipDirectoryReader::__construct(), ParserTestRunner::__construct(), MediaWiki\Session\SessionManager::__construct(), ResourceLoaderFileTestModule::__construct(), ResourceLoaderFileModule::__construct(), PathRouter::add(), OutputPage::addReturnTo(), PathRouter::addStrict(), OutputPage::addStyle(), RedisConnectionPool::applyDefaultConfig(), MediaWikiTestCase::assertSelect(), MediaWiki\Auth\AuthManager::autoCreateUser(), MediaWiki\Linker\LinkRenderer::buildAElement(), OutputPage::buildCssLinksArray(), SpecialActiveUsers::buildForm(), RangeChronologicalPager::buildQueryInfo(), IndexPager::buildQueryInfo(), Linker::buildRollbackLink(), Wikimedia\Rdbms\Database::buildSelectSubquery(), MediaWiki\Auth\AuthManager::canCreateAccount(), NamespaceDupes::checkAll(), NamespaceDupes::checkLinkTable(), NamespaceDupes::checkNamespace(), NamespaceDupes::checkPrefix(), WebResponse::clearCookie(), Revision\RevisionRenderer::combineSlotOutput(), Wikimedia\Rdbms\LBFactory::commitAll(), Wikimedia\Rdbms\LBFactory::commitMasterChanges(), Article::confirmDelete(), Title::countAuthorsBetween(), NoWriteWatchedItemStore::countWatchersMultiple(), WatchedItemStore::countWatchersMultiple(), MediaWiki\Http\HttpRequestFactory::create(), EtcdConfigTest::createConfigMock(), SpecialWatchlist::cutoffselector(), Block::defaultRetroactiveAutoblock(), PrefixSearch::defaultSearchBackend(), LocalRepo::deletedFileHasKey(), ApiBase::dieWithException(), PathRouter::doAdd(), SiteStatsInit::doAllAndCommit(), WikiPage::doEditUpdates(), Article::doEditUpdates(), ApiBaseTest::doGetParameterFromSettings(), RevDelArchiveList::doQuery(), UserCache::doQuery(), WikiPage::doSecondaryDataUpdates(), Skin::editUrlOptions(), Xhprof::enable(), FormatJson::encode(), ApiFormatTestBase::encodeData(), ApiFormatBaseTest::encodeData(), Sanitizer::escapeId(), Sanitizer::escapeIdReferenceList(), Wikimedia\Rdbms\DatabasePostgres::estimateRowCount(), Wikimedia\Rdbms\DatabaseMssql::estimateRowCount(), Wikimedia\Rdbms\DatabaseMysqlBase::estimateRowCount(), Wikimedia\Rdbms\Database::estimateRowCount(), GenerateRandomImages::execute(), ApiExpandTemplates::execute(), SpecialApiHelp::execute(), SpecialExpandTemplates::execute(), CommandLineInc::execute(), UpdateCollation::execute(), NamespaceDupes::execute(), PhpHttpRequest::execute(), RefreshImageMetadata::execute(), PPFuzzTest::execute(), ResourceLoaderFileModule::extractBasePaths(), ResourceLoaderImageModule::extractLocalBasePath(), ApiBase::extractRequestParams(), MWHttpRequest::factory(), MWHttpRequestTester::factory(), MediaWiki\Storage\SqlBlobStore::fetchBlob(), Parser::fetchFile(), Parser::fetchFileAndTitle(), Parser::fetchFileNoRegister(), QueryPage::fetchFromCache(), Revision\RevisionStore::fetchRevisionRowFromConds(), ResourceLoader::filter(), HTMLMultiSelectField::filterDataForSubmit(), RepoGroup::findFile(), FileRepo::findFile(), RepoGroup::findFileFromKey(), FileRepo::findFileFromKey(), FileRepo::findFiles(), Wikimedia\Rdbms\DatabaseSqlite::fixIgnore(), HTMLFormField::flattenOptions(), DatabaseTestHelper::forceNextQueryError(), ApiErrorFormatter::formatException(), ApiErrorFormatter_BackCompat::formatException(), HTMLMultiSelectField::formatOptions(), HTMLRadioField::formatOptions(), DummyLinker::generateRollback(), Linker::generateRollback(), User::getActorId(), NamespaceDupes::getAlternateTitle(), MediaWiki\Auth\AuthManager::getAuthenticationRequests(), Title::getAuthorsBetween(), CategoryMembershipChangeJob::getCategoriesAtRev(), EditPage::getCheckboxesWidget(), InstallerOverrides::getCliInstaller(), DBLockManager::getConnection(), WikiPage::getContributors(), DBAccessObjectUtils::getDBOptions(), ResourceLoaderImageModule::getDefinitionSummary(), ResourceLoaderFileModule::getDefinitionSummary(), MediaWiki\Auth\ConfirmLinkAuthenticationRequest::getFieldInfo(), LogEventsList::getFiltersDesc(), SpecialPageLanguage::getFormFields(), SpecialChangeContentModel::getFormFields(), ApiHelp::getHelpInternal(), ResourceLoaderImageModule::getImages(), HTMLRadioField::getInputOOUI(), HTMLMultiSelectField::getInputOOUI(), OutputPage::getKeyHeader(), Wikimedia\Rdbms\DatabaseMysqlBase::getLagFromPtHeartbeat(), MediaWiki\Linker\LinkRenderer::getLegacyOptions(), SpecialProtectedtitles::getLevelMenu(), SpecialProtectedpages::getLevelMenu(), Title::getLinksFrom(), Title::getLinksTo(), Category::getMembers(), ApiErrorFormatter::getMessageFromException(), MediaWiki\Widget\NamespaceInputWidget::getNamespaceDropdownOptions(), SpecialEditWatchlist::getNormalForm(), MediaWiki\Preferences\DefaultPreferencesFactory::getOptionFromUser(), ApiOptionsTest::getOptionKinds(), User::getOptionKinds(), User::getOptions(), SpecialChangeContentModel::getOptionsForTitle(), AbstractContent::getParserOutput(), BotPassword::getPassword(), LinkFilter::getQueryConditions(), NewPagesPager::getQueryInfo(), ShortPagesPage::getQueryInfo(), NewFilesPager::getQueryInfo(), UsersPager::getQueryInfo(), OldLocalFile::getQueryInfo(), LocalFile::getQueryInfo(), LogPager::getQueryInfo(), Revision::getQueryInfo(), Revision\RevisionStore::getQueryInfo(), ImageListPager::getQueryInfoReal(), Revision\RevisionRenderer::getRenderedRevision(), ResourceLoaderTestCase::getResourceLoaderContext(), PageArchive::getRevisionByConditions(), ResourceLoaderWikiModule::getScript(), BaseTemplate::getSidebar(), Revision\RevisionStore::getSlotsQueryInfo(), ResourceLoaderWikiModule::getStyles(), Title::getSubpages(), MysqlInstaller::getTableOptions(), NamespaceDupes::getTargetList(), Title::getTemplateLinksFrom(), Title::getTemplateLinksTo(), ResourceLoaderImageTest::getTestImage(), ParserOutput::getText(), ImageHistoryList::getThumbForLine(), SpecialProtectedpages::getTypeMenu(), OutputPage::getVaryHeader(), MediaWiki\Session\SessionManager::getVaryHeaders(), NoWriteWatchedItemStore::getWatchedItemsForUser(), WatchedItemQueryService::getWatchedItemsForUser(), WatchedItemStore::getWatchedItemsForUser(), WatchedItemQueryService::getWatchedItemsWithRecentChangeInfo(), ParserEditTests::handleFailure(), DumpRenderer::handleRevision(), LocalRepo::hiddenFileHasKey(), ForeignAPIRepo::httpGet(), User::idForName(), User::idFromName(), Wikimedia\Rdbms\DatabaseSqlite::indexUnique(), PasswordFactory::init(), DatabaseOracle::insert(), Wikimedia\Rdbms\DatabasePostgres::insert(), Wikimedia\Rdbms\DatabaseMssql::insert(), Wikimedia\Rdbms\DatabaseSqlite::insert(), Wikimedia\Rdbms\Database::insert(), CheckLanguageCLI::isEmpty(), Xml::languageSelector(), DummyLinker::link(), Linker::link(), DummyLinker::linkKnown(), Linker::linkKnown(), Xml::listDropDown(), Xml::listDropDownOptions(), Xml::listDropDownOptionsOoui(), PageArchive::listRevisions(), User::load(), User::loadFromDatabase(), ResourceLoaderImageModule::loadFromDefinition(), Maintenance::loadWithArgv(), Wikimedia\Rdbms\Database::lockForUpdate(), LocalIdLookup::lookupCentralIds(), HTMLFormField::lookupOptionsKeys(), LocalIdLookup::lookupUserNames(), DummyLinker::makeCommentLink(), Linker::makeCommentLink(), Wikimedia\Rdbms\Database::makeGroupByWithHaving(), Parser::makeImage(), Wikimedia\Rdbms\DatabaseSqlite::makeInsertOptions(), Wikimedia\Rdbms\Database::makeInsertOptions(), BaseTemplate::makeLink(), BaseTemplate::makeListItem(), ResourceLoaderClientHtmlTest::makeModule(), SpecialRecentChanges::makeOptionsLink(), Wikimedia\Rdbms\Database::makeOrderBy(), WikiPage::makeParserOptions(), SkinTemplate::makePersonalToolsList(), ResourceLoaderClientHtmlTest::makeSampleModules(), MediaWiki\Shell\Shell::makeScriptCommand(), Wikimedia\Rdbms\DatabaseSqlite::makeSelectOptions(), DatabaseOracle::makeSelectOptions(), Wikimedia\Rdbms\DatabaseMssql::makeSelectOptions(), Wikimedia\Rdbms\DatabasePostgres::makeSelectOptions(), Wikimedia\Rdbms\Database::makeSelectOptions(), Wikimedia\Rdbms\Database::makeUpdateOptions(), Wikimedia\Rdbms\DatabaseSqlite::makeUpdateOptionsArray(), Wikimedia\Rdbms\Database::makeUpdateOptionsArray(), MediaWiki\Auth\AuthenticationRequest::mergeFieldInfo(), ChangeTags::modifyDisplayQuery(), Xml::monthSelector(), Html::namespaceSelector(), Html::namespaceSelectorOptions(), BotPassword::newFromCentralId(), RecompressTracked::newFromCommandLine(), OutputPageTest::newInstance(), User::newSystemUser(), ImagePage::openShowImage(), SpecialRecentChanges::optionsPanel(), WikiPage::pageData(), WikiPage::pageDataFromId(), Article::pageDataFromId(), WikiPage::pageDataFromTitle(), Article::pageDataFromTitle(), InfoAction::pageInfo(), CLIParser::parse(), FormatJson::parse(), OutputPage::parserOptions(), MediaWiki\Session\ImmutableSessionProviderWithCookie::persistSession(), MediaWiki\Session\CookieSessionProvider::persistSession(), MediaWiki::preOutputCommit(), BackupDumper::processOptions(), MediaWiki\Preferences\DefaultPreferencesFactory::profilePreferences(), ApiFormatRawTest::provideGeneralEncoding(), LinkerTest::provideLinkBeginHook(), LinkerTest::provideLinkEndHook(), FileRepo::publish(), LocalFile::publish(), FileRepo::publishBatch(), LocalFile::publishTo(), ForeignAPIFile::purgeCache(), LocalFile::purgeCache(), ForeignAPIFile::purgeThumbnails(), LocalFile::purgeThumbnails(), BacklinkCache::queryLinks(), FileRepo::quickImport(), TestFileReader::read(), ZipDirectoryReader::read(), ShortPagesPage::reallyDoQuery(), ContribsPager::reallyDoQuery(), ImageListPager::reallyDoQuery(), IndexPager::reallyDoQuery(), QueryPage::reallyDoQuery(), UploadFromUrl::reallyFetchFile(), DateFormatter::reformat(), Parser::renderImageGallery(), Parser::replaceInternalLinks2(), Http::request(), MediaWiki\Tests\Revision\PreMcrRevisionStoreDbTest::revisionToRow(), MediaWiki\Tests\Revision\NoContentModelRevisionStoreDbTest::revisionToRow(), MediaWiki\Tests\Revision\McrWriteBothRevisionStoreDbTest::revisionToRow(), MediaWiki\Tests\Revision\RevisionStoreDbTestBase::revisionToRow(), RefreshLinksJob::runForTitle(), MediaWiki\Linker\LinkRenderer::runLegacyBeginHook(), TableCleanup::runTable(), ParserTestRunner::runTest(), Wikimedia\Rdbms\DatabaseMssql::select(), Wikimedia\Rdbms\Database::select(), Wikimedia\Rdbms\Database::selectField(), Wikimedia\Rdbms\Database::selectFieldsOrOptionsAggregate(), Wikimedia\Rdbms\Database::selectFieldValues(), Wikimedia\Rdbms\Database::selectOptionsIncludeLocking(), DatabaseOracle::selectRow(), Wikimedia\Rdbms\Database::selectRow(), Wikimedia\Rdbms\Database::selectRowCount(), Wikimedia\Rdbms\DatabaseMssql::selectSQLText(), Wikimedia\Rdbms\DatabasePostgres::selectSQLText(), Wikimedia\Rdbms\Database::selectSQLText(), RedisPubSubFeedEngine::send(), UserMailer::send(), UserMailer::sendInternal(), WebResponse::setCookie(), FauxResponse::setCookie(), Maintenance::setParam(), Article::setParserOptions(), MediaTransformOutput::setStoragePath(), FileDeleteForm::showForm(), SpecialWatchlist::showHideCheck(), LoginHelper::showReturnToPage(), showUsage(), RedisConnectionPool::singleton(), Parser::startParse(), SevenZipStream::stream_open(), OutputPageTest::testAdaptCdnTTL(), OutputPageTest::testAddAcceptLanguage(), ApiMainTest::testCheckConditionalRequestHeaders(), LinkRendererFactoryTest::testCreateFromLegacyOptions(), MediaWiki\Tests\Storage\DerivedPageDataUpdaterTest::testDoUpdates(), PoolWorkArticleViewTest::testDoWorkDeletedContent(), PoolWorkArticleViewTest::testDoWorkLoadRevision(), PoolWorkArticleViewTest::testDoWorkMissingPage(), PoolWorkArticleViewTest::testDoWorkParserCache(), PoolWorkArticleViewTest::testDoWorkWithContent(), PoolWorkArticleViewTest::testDoWorkWithExplicitRevision(), PoolWorkArticleViewTest::testDoWorkWithString(), ApiFormatTestBase::testGeneralEncoding(), MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProviderTest::testGetAuthenticationRequests(), MediaWiki\Logger\Monolog\KafkaHandlerTest::testGetAvailablePartitionsException(), ApiErrorFormatterTest::testGetMessageFromException(), ApiErrorFormatterTest::testGetMessageFromException_BC(), ApiBaseTest::testGetParameterFromSettings_noprefix(), ApiBaseTest::testGetParameterFromSettings_prefix(), LinkFilterTest::testGetQueryConditions(), MediaWiki\Tests\Revision\RevisionRendererTest::testGetRenderedRevision_current(), MediaWiki\Tests\Revision\RevisionRendererTest::testGetRenderedRevision_master(), MediaWiki\Tests\Revision\RevisionRendererTest::testGetRenderedRevision_new(), MediaWiki\Tests\Revision\RevisionRendererTest::testGetRenderedRevision_noHtml(), MediaWiki\Tests\Revision\RevisionRendererTest::testGetRenderedRevision_old(), MediaWiki\Tests\Revision\RevisionRendererTest::testGetRenderedRevision_privileged(), MediaWiki\Tests\Revision\RevisionRendererTest::testGetRenderedRevision_raw(), MediaWiki\Tests\Revision\RevisionRendererTest::testGetRenderedRevision_suppressed(), MediaWiki\Tests\Revision\RenderedRevisionTest::testGetRevisionParserOutput_archive(), MediaWiki\Tests\Revision\RenderedRevisionTest::testGetRevisionParserOutput_current(), MediaWiki\Tests\Revision\RenderedRevisionTest::testGetRevisionParserOutput_incompleteNoId(), MediaWiki\Tests\Revision\RenderedRevisionTest::testGetRevisionParserOutput_incompleteWithId(), MediaWiki\Tests\Revision\RenderedRevisionTest::testGetRevisionParserOutput_multi(), MediaWiki\Tests\Revision\RenderedRevisionTest::testGetRevisionParserOutput_new(), MediaWiki\Tests\Revision\RenderedRevisionTest::testGetRevisionParserOutput_old(), MediaWiki\Tests\Revision\RenderedRevisionTest::testGetRevisionParserOutput_previewWithSelfTransclusion(), MediaWiki\Tests\Revision\RenderedRevisionTest::testGetRevisionParserOutput_privileged(), MediaWiki\Tests\Revision\RenderedRevisionTest::testGetRevisionParserOutput_raw(), MediaWiki\Tests\Revision\RenderedRevisionTest::testGetRevisionParserOutput_suppressed(), ParserOptionsTest::testGetSpeculativeRevid(), ParserOutputTest::testGetText(), WatchedItemQueryServiceUnitTest::testGetWatchedItemsWithRecentChangeInfo_extension(), ParserOptionsTest::testIsSafeToCache(), PoolWorkArticleViewTest::testMagicWords(), LinkFilterTest::testMakeLikeArrayWithValidPatterns(), SkinTemplateTest::testMakeListItem(), ShellTest::testMakeScriptCommand(), MediaWiki\Auth\AuthenticationRequestTest::testMergeFieldInfo(), MediaWiki\Tests\Revision\RenderedRevisionTest::testNoHtml(), MediaWiki\Sparql\SparqlClientTest::testOptions(), ParserOptionsTest::testOptionsHash(), TextContentTest::testPreloadTransform(), MediaWiki\Tests\Storage\DerivedPageDataUpdaterTest::testPrepareUpdate(), MediaWiki\Tests\Storage\DerivedPageDataUpdaterTest::testPrepareUpdateOutputReset(), MediaWiki\Tests\Storage\DerivedPageDataUpdaterTest::testPrepareUpdateReusesParserOutput(), TextContentTest::testPreSaveTransform(), Parser::testPst(), MediaWiki\Tests\Revision\RevisionQueryInfoTest::testRevisionGetQueryInfo(), MediaWiki\Tests\Revision\RevisionQueryInfoTest::testRevisionStoreGetQueryInfo(), MediaWiki\Tests\Revision\RevisionQueryInfoTest::testRevisionStoreGetSlotsQueryInfo(), RefreshLinksJobTest::testRunForSinglePage(), MediaWiki\Logger\Monolog\KafkaHandlerTest::testSendException(), MediaWiki\Logger\Monolog\KafkaHandlerTest::testTopicNaming(), MediaWiki\Tests\Revision\RenderedRevisionTest::testUpdateRevision(), MediaWiki\Auth\LocalPasswordPrimaryAuthenticationProvider::testUserExists(), MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProvider::testUserExists(), GlobalTest::testWfShellWikiCmd(), DummyLinker::titleAttrib(), Linker::titleAttrib(), TraditionalImageGallery::toHTML(), ThumbnailImage::toHtml(), DummyLinker::tooltip(), Linker::tooltip(), Linker::tooltipAndAccesskeyAttribs(), Parser::transformMsg(), Wikimedia\Rdbms\Database::unionConditionPermutations(), Wikimedia\Rdbms\DatabaseMssql::update(), DatabaseOracle::update(), Wikimedia\Rdbms\Database::update(), WikiPage::updateParserCache(), LocalFile::upload(), Language::userDate(), Language::userTime(), Language::userTimeAndDate(), MediaWiki\Preferences\DefaultPreferencesFactory::watchlistPreferences(), wfFindFile(), wfShellExec(), and wfShellWikiCmd().

◆ $out

this hook is for auditing only or null if authentication failed before getting that far or null if we can t even determine that probably a stub it is not rendered in wiki pages or galleries in category pages allow injecting custom HTML after the section Any uses of the hook need to handle escaping see BaseTemplate::getToolbox and BaseTemplate::makeListItem for details on the format of individual items inside of this array or by returning and letting standard HTTP rendering take place modifiable or by returning false and taking over the output $out
inline

Definition at line 785 of file hooks.txt.

Referenced by StatusValue::__toString(), EditPage::addEditNotices(), Article::addHelpLink(), EditPage::addLongPageWarningHeader(), SpecialRecentChanges::addModules(), ChangesListSpecialPage::addModules(), EditPage::addPageProtectionWarningHeaders(), UploadForm::addUploadJS(), Article::adjustDisplayTitle(), SiteConfiguration::arrayMerge(), SkinTemplate::buildContentNavigationUrls(), AllMessagesTablePager::buildForm(), ProtectionForm::buildForm(), SkinTemplate::buildNavUrls(), ImportReporter::close(), ApiFormatBase::closePrinter(), CategoryPage::closeShowCategory(), MediaWiki\Tests\Revision\RenderedRevisionTest::combineOutput(), Revision\RevisionRenderer::combineSlotOutput(), FormOptions::consumeValues(), SpecialContributions::contributionsSub(), Title::convertByteClassToUnicodeClass(), LanguageLa::convertGrammar(), EditPage::displayPermissionsError(), EditPage::displayPreviewArea(), EditPage::displayViewSourcePage(), DatabaseUpdater::doEnableProfiling(), SpecialRecentChanges::doHeader(), SpecialWatchlist::doHeader(), SpecialImport::doImport(), MovePageForm::doSubmit(), Parser::doTableStuff(), EditPage::edit(), Xml::element(), ChangesList::endRecentChangesList(), MediaWiki\Logger\Monolog\LineFormatter::exceptionAsArray(), SpecialListFiles::execute(), ApiHelp::execute(), SpecialJavaScriptTest::execute(), SpecialApiSandbox::execute(), SpecialNewFiles::execute(), SpecialSpecialpages::execute(), SpecialUserLogout::execute(), SpecialContributions::execute(), SpecialListGrants::execute(), FormatInstallDoc::execute(), SpecialExport::execute(), SpecialPasswordPolicies::execute(), SpecialPreferences::execute(), SpecialActiveUsers::execute(), SpecialAutoblockList::execute(), SpecialListGroupRights::execute(), SpecialUnblock::execute(), SpecialBlockList::execute(), SpecialBookSources::execute(), DeletedContributionsPage::execute(), SpecialAllMessages::execute(), SpecialWhatLinksHere::execute(), SpecialVersion::execute(), SpecialPrefixindex::execute(), LinkSearchPage::execute(), SpecialExpandTemplates::execute(), SpecialChangeEmail::execute(), SpecialAllPages::execute(), ConvertExtensionToRegistration::execute(), UserrightsPage::execute(), SpecialEditWatchlist::execute(), FileDuplicateSearchPage::execute(), SpecialEmailUser::execute(), SpecialSearch::execute(), GetConfiguration::execute(), SpecialNewpages::execute(), SpecialRecentChanges::execute(), SpecialUndelete::execute(), QueryPage::execute(), SpecialEditWatchlist::executeViewEditWatchlist(), Xml::expandAttributes(), SpecialJavaScriptTest::exportQUnit(), LCStoreStaticArray::finishWrite(), SpecialNewpages::form(), FormatMetadata::formatNum(), BrokenRedirectsPage::formatResult(), MediaWikiTitleCodec::formatTitle(), Skin::getCategories(), Skin::getCategoryLinks(), EditPage::getContentObject(), Skin::getCopyrightIcon(), SpecialVersion::getCreditsForExtension(), Skin::getDefaultModules(), SpecialVersion::getEntryPointInfo(), SpecialVersion::getExtensionCategory(), SpecialVersion::getExtensionCredits(), SpecialVersion::getExternalLibraries(), ProfilerSectionOnly::getFunctionReport(), ProfilerXhprof::getFunctionReport(), ApiHelp::getHelp(), ApiHelp::getHelpInternal(), Status::getHTML(), BaseTemplate::getIndicators(), HTMLMultiSelectField::getInputOOUI(), ResourceLoaderStartUpModule::getModuleRegistrations(), Skin::getNewtalks(), SpecialVersion::getParserFunctionHooks(), SpecialVersion::getParserTags(), EditPage::getPreviewText(), Skin::getRelevantUser(), SpecialVersion::getSkinCredits(), DeletedContributionsPage::getSubTitle(), Sanitizer::hackDocType(), EditPage::handleStatus(), Language::iconv(), ImagePage::imageDupes(), ImagePage::imageHistory(), ImagePage::imageLinks(), ChangesListSpecialPage::includeRcFiltersApp(), ProfilerOutputText::log(), LoginSignupSpecialPage::mainLoginForm(), ResourceLoader::makeModuleResponse(), SpecialExpandTemplates::makeOutput(), Parser::markerSkipCallback(), Sanitizer::mergeAttributes(), JavaScriptMinifier::minify(), ChangeTags::newTagUsageStatistics(), SearchMySQL::normalizeText(), EditPage::noSuchSectionPage(), SpecialPageLanguage::onSubmit(), SpecialChangeContentModel::onSubmit(), SpecialUnlockdb::onSuccess(), SpecialLockdb::onSuccess(), SpecialChangeContentModel::onSuccess(), SpecialBotPasswords::onSuccess(), SpecialBlock::onSuccess(), HistoryAction::onView(), SpecialVersion::openExtType(), XmlDumpWriter::openPage(), ImagePage::openShowImage(), Maintenance::output(), SpecialListGroupRights::outputNamespaceProtectionInfo(), SkinTemplate::outputPage(), SpecialSpecialpages::outputPageList(), ImageQueryPage::outputResults(), QueryPage::outputResults(), SpecialEditWatchlist::outputSubtitle(), Installer::parse(), Message::parseText(), DiffHistoryBlob::patch(), SpecialJavaScriptTest::plainQUnit(), SpecialChangeContentModel::postText(), SpecialBlock::postText(), SkinTemplate::prepareQuickTemplate(), ImagePage::printSharedImageText(), SearchHighlighter::process(), SpecialTags::processCreateTagForm(), SpecialTags::processTagForm(), UserMailer::quotedPrintable(), LanguageConverter::recursiveConvertTopLevel(), ConvertExtensionToRegistration::removeAbsolutePath(), ConvertExtensionToRegistration::removeAutodiscoveredParserTestFiles(), MediaWiki\Widget\Search\BasicSearchResultSetWidget::render(), MediaWiki\Widget\Search\SimpleSearchResultSetWidget::render(), DifferenceEngine::renderNewRevision(), ParserTestRunner::runTest(), ProtectionForm::save(), ApiMain::sendCacheHeaders(), SpecialEmailUser::sendEmailForm(), ContentSecurityPolicy::sendHeaders(), Action::setHeaders(), SpecialPage::setHeaders(), EditPage::setHeaders(), SpecialSearch::setupPage(), ApiParseTest::setupSkin(), EditAction::show(), ProtectAction::show(), McrUndoAction::show(), ProtectionForm::show(), SpecialTags::showActivateDeactivateForm(), SpecialAllPages::showChunk(), EditPage::showConflict(), SpecialTags::showDeleteTagForm(), DifferenceEngine::showDiffPage(), EditPage::showEditForm(), ImagePage::showError(), SpecialUndelete::showFileConfirmationForm(), MovePageForm::showForm(), SpecialEditTags::showForm(), SpecialImport::showForm(), SpecialRevisionDelete::showForm(), EditPage::showFormBeforeText(), EditPage::showHeader(), SpecialMergeHistory::showHistory(), SpecialUndelete::showHistory(), SpecialWhatLinksHere::showIndirectLinks(), EditPage::showIntro(), SpecialAutoblockList::showList(), SpecialBookSources::showList(), SpecialBlockList::showList(), SpecialUndelete::showList(), LogEventsList::showLogExtract(), ProtectionForm::showLogExtract(), MovePageForm::showLogFragment(), SpecialMergeHistory::showMergeForm(), DifferenceEngine::showMissingRevision(), SpecialPrefixindex::showPrefixChunk(), McrUndoAction::showPreview(), EditPage::showPreview(), EmailConfirmation::showRequestForm(), SpecialSearch::showResults(), SpecialUndelete::showRevision(), SpecialUndelete::showSearchForm(), EditPage::showStandardInputs(), SpecialChangeCredentials::showSubpageList(), MovePageForm::showSubpagesList(), LoginSignupSpecialPage::showSuccessPage(), SpecialTags::showTagList(), EditPage::showTosSummary(), SpecialAutoblockList::showTotal(), SpecialVersion::softwareInformation(), EditPage::spamPageWithContent(), MwSql::sqlPrintResult(), Skin::subPageSubtitle(), SpecialChangeCredentials::success(), SpecialCreateAccount::successfulAction(), ChangeTags::tagUsageStatistics(), OutputPageTest::testCdnCacheEpoch(), ExtraParserTest::testCleanSigInSig(), PoolWorkArticleViewTest::testDoWorkParserCache(), ExtensionProcessorTest::testExtractExtensionMessagesFiles(), ExtensionProcessorTest::testExtractMessagesDirs(), ExtensionProcessorTest::testExtractResourceLoaderModules(), ResourceLoaderStartUpModuleTest::testGetModuleRegistrations(), ResourceLoaderWikiModuleTest::testGetPages(), ParserMethodsTest::testGetSections(), ApiRevisionDeleteTest::testHidingRevisions(), LinkerTest::testLinkBeginHook(), LinkerTest::testLinkEndHook(), OutputPageTest::testMakeResourceLoaderLink(), MediaWiki\Logger\Monolog\LineFormatterTest::testNormalizeExceptionNoTrace(), MediaWiki\Logger\Monolog\LineFormatterTest::testNormalizeExceptionTrace(), ContentHandlerTest::testParserOutputForIndexing(), ResourceLoaderStartUpModuleTest::testRegistrationsMinified(), ResourceLoaderStartUpModuleTest::testRegistrationsUnminified(), ExifRotationTest::testRotationRendering(), ExifRotationTest::testRotationRenderingNoAutoRotate(), RefreshLinksJobTest::testRunForSinglePage(), ApiRevisionDeleteTest::testUnhidingOutput(), DatabaseSqliteTest::testUpgrades(), MediaWiki\Tests\Maintenance\BenchmarkerTest::testVerboseRun(), SpecialUndelete::undelete(), ImagePage::uploadLinksBox(), ExtensionJsonValidator::validate(), Sanitizer::validateAttributes(), ImagePage::view(), Article::viewRedirect(), wfMergeErrorArrays(), XmlDumpWriter::writeContributor(), XmlDumpWriter::writeLogItem(), XmlDumpWriter::writeRevision(), and XmlDumpWriter::writeUploads().

◆ $output

configuration should be added through ResourceLoaderGetConfigVars instead can be used to get the real title e g db for database replication lag or jobqueue for job queue size converted to pseudo seconds It is possible to add more fields and they will be returned to the user in the API response after the basic globals have been set but before ordinary actions take place $output
static

Definition at line 2222 of file hooks.txt.

Referenced by Maintenance::activateProfiler(), LanguageConverter::autoConvert(), ProtectionForm::buildForm(), WikiExporter::closeStream(), StringUtils::delimiterReplaceCallback(), UploadBase::detectVirus(), MediaWiki\Storage\DerivedPageDataUpdater::doParserCacheUpdate(), Parser::doQuotes(), LinkHolderArray::doVariants(), SpecialContributions::execute(), SpecialExpandTemplates::execute(), SpecialWatchlist::execute(), SpecialEditTags::execute(), CategoryChangesAsRdf::execute(), SpecialRevisionDelete::execute(), DumpCategoriesAsRdf::execute(), BlockLevelPass::execute(), PPFuzzTest::execute(), SpecialPageExecutor::executeSpecialPage(), Parser::extensionSubstitution(), ExecutableFinder::findExecutable(), WikiExporter::finishPageStreamOutput(), MediaWiki\Logger\Monolog\LineFormatter::format(), AutoloadGenerator::generatePHPAutoload(), CategoryMembershipChangeJob::getCategoriesAtRev(), SpecialPageExecutor::getHTMLFromSpecialPage(), ChangesListBooleanFilter::getJsData(), ChangesListStringOptionsFilterGroup::getJsData(), ChangesListFilterGroup::getJsData(), ChangesListFilter::getJsData(), WebInstallerLanguage::getLanguageSelector(), EditPage::getPreviewLimitReport(), Revision\RenderedRevision::getRevisionParserOutput(), MediaWiki\Storage\DerivedPageDataUpdater::getSecondaryDataUpdates(), Revision\RenderedRevision::getSlotParserOutput(), ChangesListSpecialPage::getStructuredFilterJsData(), CategoryChangesAsRdf::handleAdds(), CategoryChangesAsRdf::handleDeletes(), CategoryChangesAsRdf::handleEdits(), CategoryChangesAsRdf::handleMoves(), CategoryChangesAsRdf::handleRestores(), DumpRenderer::handleRevision(), CryptHKDF::HKDFExpand(), StringUtils::hungryDelimiterReplace(), Profiler::logData(), Profiler::logDataPageOutputOnly(), MediaWiki::main(), SpecialExpandTemplates::makeOutput(), PageDataRequestHandlerTest::makeOutputPage(), Maintenance::maybeHelp(), mccGetHelp(), ImagePage::openShowImage(), WikiExporter::openStream(), SpecialWatchlist::outputChangesList(), WikiExporter::outputLogStream(), WikiExporter::outputPageStreamBatch(), InfoAction::pageInfo(), MediaWiki::performAction(), MediaWiki::performRequest(), Wikimedia\Rdbms\DatabasePostgres::pg_array_parse(), MediaWiki::preOutputCommit(), MediaWiki\Storage\DerivedPageDataUpdater::prepareContent(), Revision\RenderedRevision::pruneRevisionSensitiveOutput(), ParserTestPrinter::quickDiff(), SectionProfiler::remapCallTree(), LinkHolderArray::replaceInternal(), LinkHolderArray::replaceInterwiki(), Parser::replaceTransparentTags(), UserNotLoggedIn::report(), ParserTestRunner::runTest(), SpecialAllPages::showChunk(), UserrightsPage::showLogFragment(), SpecialPrefixindex::showPrefixChunk(), SpecialEditWatchlist::showTitles(), showUsage(), JpegHandler::swapICCProfile(), DifferenceEngineSlotDiffRendererTest::testAddModules(), ArticleViewTest::testArticleAfterFetchContentObjectHook(), ArticleViewTest::testArticleContentViewCustomHook(), ArticleViewTest::testArticleRevisionViewCustomHook(), ArticleViewTest::testArticleViewHeaderHook(), FirejailCommandTest::testBuildFinalCommand(), DatabaseMysqlBaseTest::testBuildIntegerCast(), DatabaseSQLTest::testBuildIntegerCast(), DatabaseOracleTest::testBuildSubstring(), DatabaseMssqlTest::testBuildSubstring(), DatabaseSqliteRdbmsTest::testBuildSubstring(), DatabaseSQLTest::testBuildSubstring(), ListToggleTest::testConstruct(), ContentHandlerTest::testDataIndexFields(), SanitizerTest::testEscapeId(), SpecialPageDataTest::testExecute(), ArrayDiffFormatterTest::testFormat(), FormatMetadataTest::testGetFormattedData(), ListToggleTest::testGetHTML(), CSSMinTest::testGetLocalFileReferences(), MediaWiki\Tests\Revision\RevisionRendererTest::testGetRenderedRevision_noHtml(), PageDataRequestHandlerTest::testHandleRequest(), PageDataRequestHandlerTest::testHttpContentNegotiation(), WfTimestampTest::testHttpDate(), PoolWorkArticleViewTest::testMagicWords(), MediaWiki\Tests\Storage\PageUpdaterTest::testMagicWords(), ApiParseTest::testModules(), MediaWiki\Tests\Revision\SlotRecordTest::testNewWithSuppressedContent(), MediaWiki\Tests\Revision\RenderedRevisionTest::testNoHtml(), WfTimestampTest::testNormalTimestamps(), WfTimestampTest::testOldTimestamps(), ExtraParserTest::testParseLinkParameter(), JpegPixelFormatTest::testPixelFormatRendering(), PreprocessorTest::testPreprocessorOutputFiles(), SanitizerTest::testRemoveHTMLtags(), FormatMetadataTest::testResolveMultivalueValue(), CSSMinTest::testSerializeStringValue(), ArticleViewTest::testShowMissingArticleHook(), CategoryChangesRdfTest::testSparqlUpdate(), SpecialPageDataTest::testSpecialPageWithoutParameters(), WfShellExecTest::testT69870(), CommandTest::testT69870(), ApiResultTest::testTransformations(), ArticleViewTest::testUnhiddenViewOfDeletedRevision(), AbstractChangesListSpecialPageTestCase::testValidateOptions(), ArticleViewTest::testView(), ArticleViewTest::testViewCached(), ArticleViewTest::testViewDeletedPage(), ArticleViewTest::testViewMessagePage(), ArticleViewTest::testViewMissingPage(), ArticleViewTest::testViewMissingUserPage(), ArticleViewTest::testViewNonText(), ArticleViewTest::testViewOfCurrentRevision(), ArticleViewTest::testViewOfDeletedRevision(), ArticleViewTest::testViewOfMissingRevision(), ArticleViewTest::testViewOfOldRevision(), ArticleViewTest::testViewRedirect(), ArticleViewTest::testViewUserPageOfNonexistingUser(), WfAssembleUrlTest::testWfAssembleUrl(), WfShorthandToIntegerTest::testWfShorthandToInteger(), TraditionalImageGallery::toHTML(), MediaWiki::tryNormaliseRedirect(), wfArrayInsertAfter(), wfRemoveDotSegments(), and GenerateJqueryMsgData::writeJavascriptFile().

◆ $parser

function wfGetCustomMagicWordValue $parser
Initial value:
{
$parser->setFunctionHook( 'mag_custom', 'wfGetCustomMagicWordValue' )
see documentation in includes Linker php for Linker::makeImageLink or false for current used if you return false $parser
Definition: hooks.txt:1814

Definition at line 1814 of file hooks.txt.

Referenced by ParserDiffTest::__call(), PhpXmlBugTester::__construct(), CoreParserFunctions::anchorencode(), CoreParserFunctions::bidi(), Parser::callParserFunction(), CoreParserFunctions::cascadingsources(), MediaWiki\Preferences\DefaultPreferencesFactory::cleanSignature(), Parser::clearState(), CoreParserFunctions::defaultsort(), CoreParserFunctions::displaytitle(), BenchmarkJSMinPlus::execute(), JSParseHelper::execute(), FindDeprecated::execute(), Parser::extensionSubstitution(), Parser::firstCallInit(), CoreParserFunctions::formatDate(), CoreParserFunctions::formatnum(), ParserFuzzTest::fuzzTest(), CoreTagHooks::gallery(), CoreParserFunctions::gender(), CoreParserFunctions::getCachedRevisionObject(), Linker::getImageLinkMTOParams(), ParserTestRunner::getParser(), Parser::getVariableValue(), CoreParserFunctions::grammar(), ParserMethodsTest::helperParserFunc(), CoreTagHooks::html(), PageDataRequestHandler::httpContentNegotiation(), Parser::internalParse(), Parser::internalParseHalfParsed(), CoreParserFunctions::intFunction(), ResourceLoader::isEmptyObject(), Title::isValid(), Xml::isWellFormed(), CoreParserFunctions::lc(), CoreParserFunctions::lcfirst(), CoreParserFunctions::ns(), CoreParserFunctions::nse(), CoreParserFunctions::numberingroup(), CoreParserFunctions::numberofactiveusers(), CoreParserFunctions::numberofadmins(), CoreParserFunctions::numberofarticles(), CoreParserFunctions::numberofedits(), CoreParserFunctions::numberoffiles(), CoreParserFunctions::numberofpages(), CoreParserFunctions::numberofusers(), CoreParserFunctions::pad(), CoreParserFunctions::padleft(), CoreParserFunctions::padright(), CoreParserFunctions::pageid(), CoreParserFunctions::pagesincategory(), CoreParserFunctions::pagesinnamespace(), CoreParserFunctions::pagesize(), Parser::parse(), MessageCache::parse(), CoreParserFunctions::plural(), MediaWiki\Storage\DerivedPageDataUpdater::prepareContent(), Parser::preprocess(), CoreParserFunctions::protectionexpiry(), CoreParserFunctions::protectionlevel(), TextPassDumper::readDump(), Parser::recursiveTagParse(), CoreTagHooks::register(), CoreParserFunctions::register(), Parser::renderImageGallery(), CoreParserFunctions::revisionday(), CoreParserFunctions::revisionday2(), CoreParserFunctions::revisionid(), CoreParserFunctions::revisionmonth(), CoreParserFunctions::revisionmonth1(), CoreParserFunctions::revisiontimestamp(), CoreParserFunctions::revisionuser(), CoreParserFunctions::revisionyear(), ParserTestRunner::runTest(), ParserDiffTest::setFunctionHook(), ImageGalleryBase::setParser(), Revision\RenderedRevision::setRevisionInternal(), ParserTestParserHook::setup(), ParserOptions::setupFakeRevision(), CoreParserFunctions::special(), CoreParserFunctions::speciale(), TextPassDumper::startElement(), Parser::statelessFetchTemplate(), ParserTestRunner::staticSetup(), ParserTestParserHook::staticTagHook(), CoreParserFunctions::tagObj(), ParserFactoryTest::testAllArgumentsWerePassed(), TagHooksTest::testBadFunctionTagHooks(), TagHooksTest::testBadTagHooks(), TagHooksTest::testFunctionTagHooks(), JavaScriptMinifierTest::testMinifyOutput(), ApiParseTest::testModules(), HttpAcceptParserTest::testParseWeights(), TagHooksTest::testTagHooks(), MessageCache::transform(), CoreParserFunctions::uc(), CoreParserFunctions::ucfirst(), CoreParserFunctions::urlencode(), ResourceLoaderModule::validateScriptFile(), and ParserTestPrinter::wellFormed().

◆ $pre

return true to allow those checks to and false if checking is done remove or add to the links of a group of changes in EnhancedChangesList Hook subscribers can return false to omit this line from recentchanges use this to change the tables headers change it to an object instance and return false override the list derivative used the name of the old file when set the default code will be skipped $pre

◆ $query

null means default in associative array with keys and values unescaped Should be merged with default with a value of false meaning to suppress the attribute & $query

Definition at line 1599 of file hooks.txt.

Referenced by ApiQueryPrefixSearch::__construct(), OutputPage::addBacklinkSubtitle(), MockSearchEngine::addMockResults(), OutputPage::addReturnTo(), SpecialUserLogin::beforeExecute(), OutputPage::buildBacklinkSubtitle(), SkinTemplate::buildPersonalUrls(), Linker::buildRollbackLink(), SpecialPage::checkLoginSecurityLevel(), ChangesListSpecialPage::considerActionsForDefaultSavedQuery(), PostgresUpdater::describeIndex(), SpecialRedirect::dispatchLog(), SpecialRecentChangesLinked::doMainQuery(), Wikimedia\Rdbms\DatabaseMysqlBase::duplicateTableStructure(), ApiQueryExternalLinks::execute(), RedirectSpecialPage::execute(), RunBatchedQuery::execute(), MwSql::execute(), RandomPage::execute(), SpecialSearch::execute(), SpecialRecentChanges::execute(), LoginSignupSpecialPage::execute(), MediaWiki\Special\SpecialPageFactory::executePath(), SpecialJavaScriptTest::exportQUnit(), ForeignAPIRepo::fetchImageQuery(), IEUrlExtension::fixUrlForIE6(), Title::fixUrlQueryArgs(), SpecialUndelete::formatFileRow(), SpecialNewpages::formatRow(), MediaWiki\Widget\Search\FullSearchResultWidget::generateMainLinkHtml(), DeleteLogFormatter::getActionLinks(), Title::getCanonicalURL(), SearchMySQL::getCountQuery(), MultiHttpClient::getCurlHandle(), MWDebug::getDebugInfo(), DeletedContribsPager::getDefaultQuery(), LogPager::getDefaultQuery(), ContribsPager::getDefaultQuery(), UsersPager::getDefaultQuery(), MediaTransformOutput::getDescLinkAttribs(), FileRepo::getDescriptionRenderUrl(), WebInstaller::getDocUrl(), SpecialRecentChanges::getFeedQuery(), ImageListPager::getForm(), Title::getFullURL(), Title::getFullUrlForRedirect(), ApiPageSet::getGenerators(), OutputPage::getHeadLinksArray(), TablePager::getHiddenFields(), Linker::getImageLinkMTOParams(), ForeignAPIRepo::getInfo(), Title::getInternalURL(), IRCColourfulRCFeedFormatter::getLine(), MediaWiki\Linker\LinkRenderer::getLinkURL(), Title::getLinkURL(), Title::getLocalURL(), TagLogFormatter::getMessageParameters(), PatrolLogFormatter::getMessageParameters(), WebInstaller::getPageListItem(), IndexPager::getPagingLinks(), ImageListPager::getPagingQueries(), SearchMySQL::getQuery(), WantedPagesPage::getQueryInfo(), NewFilesPager::getQueryInfo(), UncategorizedCategoriesPage::getQueryInfo(), WithoutInterwikiPage::getQueryInfo(), UsersPager::getQueryInfo(), Linker::getRevDeleteLink(), OutputPage::getRlClientContext(), LogEventsList::getShowHideLinks(), TablePager::getStartBody(), Linker::getUploadUrl(), ResourceLoaderImage::getUrl(), WebInstaller::getUrl(), EditPage::handleStatus(), HistoryPager::historyLine(), ForeignAPIRepo::httpGetCached(), ImageHistoryList::imageHistoryLine(), ImagePage::imageLinks(), ChangesList::insertDiffHist(), ResourceLoader::isEmptyObject(), SearchMySQL::limitResult(), DummyLinker::link(), Linker::link(), DummyLinker::linkKnown(), Linker::linkKnown(), SpecialWhatLinksHere::listItem(), DummyLinker::makeBrokenImageLinkObj(), Linker::makeBrokenImageLinkObj(), MediaWiki\Linker\LinkRenderer::makeBrokenLink(), LinkHolderArray::makeHolder(), DummyLinker::makeImageLink(), Linker::makeImageLink(), MediaWiki\Linker\LinkRenderer::makeKnownLink(), LoginSignupSpecialPage::makeLanguageSelectorLink(), MediaWiki\Linker\LinkRenderer::makeLink(), IndexPager::makeLink(), MediaWiki\Linker\LinkRenderer::makePreloadedLink(), SpecialWhatLinksHere::makeSelfLink(), DummyLinker::makeSelfLinkObj(), DummyLinker::makeThumbLink2(), Linker::makeThumbLink2(), FileRepo::makeUrl(), Language::numLink(), SwiftFileBackend::objectListing(), SpecialChangeEmail::onSuccess(), SearchEngine::parseNamespacePrefixes(), MediaWiki::performRequest(), ApiQueryBase::prepareUrlQuerySearchString(), MarkpatrolledAction::preText(), LinkerTest::provideLinkBeginHook(), WfAssembleUrlTest::provideURLParts(), MWDebug::query(), SearchMySQL::queryFeatures(), SearchMySQL::queryMain(), SearchMySQL::queryNamespaces(), ShortPagesPage::reallyDoQuery(), DeletedContribsPager::reallyDoQuery(), ContribsPager::reallyDoQuery(), QueryPage::reallyDoQuery(), EnhancedChangesList::recentChangesBlockLine(), Wikimedia\Rdbms\TransactionProfiler::recordQueryCompletion(), SpecialUndelete::redirectToRevDel(), CSSMin::remapOne(), LinkHolderArray::replaceInternal(), SearchEngine::replacePrefixes(), UserNotLoggedIn::report(), Wikimedia\Rdbms\TransactionProfiler::reportExpectationViolated(), DummyLinker::revDeleteLink(), Linker::revDeleteLink(), ApiQueryExtLinksUsage::run(), ApiQuerySearch::run(), MediaWiki\Linker\LinkRenderer::runBeginHook(), MediaWiki\Linker\LinkRenderer::runLegacyBeginHook(), MultiHttpClient::runMultiHttp(), SearchMySQL::searchInternal(), SearchPostgres::searchQuery(), RandomPage::selectRandomPageFromDB(), SpecialRandomInCategory::selectRandomPageFromDB(), OutputPage::setFeedAppendQuery(), SkinTemplate::setupTemplateForOutput(), SpecialAllPages::showChunk(), DifferenceEngine::showDiffPage(), OutputPage::showPermissionsErrorPage(), SpecialPrefixindex::showPrefixChunk(), Article::showRedirectedFromHeader(), SkinTemplate::tabAction(), Wikimedia\Rdbms\DatabaseMysqlBase::tableExists(), WfAppendQueryTest::testAppendQuery(), OutputPageTest::testBuildBacklinkSubtitle(), LinkFilterTest::testGetQueryConditions(), SearchEngineTest::testParseNamespacePrefix(), ApiPrefixUniquenessTest::testPrefixes(), SpecialSearchTest::testSubPageRedirect(), MediaWikiTest::testTryNormaliseRedirect(), AbstractChangesListSpecialPageTestCase::testValidateOptions(), ThumbnailImage::toHtml(), Wikimedia\Rdbms\TransactionProfiler::transactionWritingOut(), MediaWiki::triggerAsyncJobs(), ResourceFileCache::useFileCache(), HTMLFileCache::useFileCache(), ChangesListSpecialPage::validateOptions(), Language::viewPrevNext(), wfAppendQuery(), and wfCgiToArray().

◆ $refreshCache

null for the local wiki Added should default to null in handler for backwards compatibility add a value to it if you want to add a cookie that have to vary cache options can modify as strings Extensions should add to this list prev or next $refreshCache

◆ $req

this hook is for auditing only $req

Definition at line 990 of file hooks.txt.

Referenced by MediaWiki\Auth\AuthManagerAuthPlugin::allowPasswordChange(), EditPageTest::assertEdit(), MediaWiki\Auth\AuthManager::beginAccountCreation(), MediaWiki\Auth\AuthManager::beginAccountLink(), MediaWiki\Auth\AuthManager::beginAuthentication(), MediaWiki\Auth\ConfirmLinkSecondaryAuthenticationProvider::beginLinkAttempt(), MediaWiki\Auth\LocalPasswordPrimaryAuthenticationProvider::beginPrimaryAccountCreation(), MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProvider::beginPrimaryAccountCreation(), MediaWiki\Auth\AuthPluginPrimaryAuthenticationProvider::beginPrimaryAccountCreation(), MediaWiki\Auth\LocalPasswordPrimaryAuthenticationProvider::beginPrimaryAuthentication(), MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProvider::beginPrimaryAuthentication(), MediaWiki\Auth\AuthPluginPrimaryAuthenticationProvider::beginPrimaryAuthentication(), ApiAuthManagerHelper::blacklistAuthenticationRequests(), SpecialActiveUsers::buildForm(), User::changeAuthenticationData(), ApiQueryTestBase::check(), MediaWiki\Auth\AuthManager::continueAccountCreation(), MediaWiki\Auth\AuthManager::continueAccountLink(), MediaWiki\Auth\AuthManager::continueAuthentication(), MediaWiki\Auth\ConfirmLinkSecondaryAuthenticationProvider::continueLinkAttempt(), RESTBagOStuff::delete(), UploadFromUrlTest::doApiRequest(), SwiftFileBackend::doExecuteOpHandlesInternal(), RESTBagOStuff::doGet(), ApiMainTest::doTestCheckMaxLag(), ApiEditPage::execute(), ApiChangeAuthenticationData::execute(), ApiParse::execute(), ApiRemoveAuthenticationData::execute(), ApiAMCreateAccount::execute(), ApiClientLogin::execute(), PasswordReset::execute(), MediaWiki\Auth\AuthManager::fillRequests(), MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProvider::finishAccountCreation(), ApiAuthManagerHelper::formatRequests(), MediaWiki\Auth\AuthManager::getAuthenticationRequestsInternal(), SpecialChangeCredentials::getAuthForm(), LanguageConverter::getDefaultVariant(), MediaWiki\Auth\ConfirmLinkAuthenticationRequest::getFieldInfo(), MediaWiki\Auth\RememberMeAuthenticationRequestTest::getInstance(), MediaWiki\Auth\ConfirmLinkAuthenticationRequestTest::getLinkRequests(), MediaWiki\Auth\ConfirmLinkSecondaryAuthenticationProviderTest::getLinkRequests(), ApiMainTest::getNonInternalApiMain(), LanguageConverter::getPreferredVariant(), MediaWiki\Auth\AuthenticationRequest::getRequestByClass(), MediaWiki\Auth\ButtonAuthenticationRequest::getRequestByName(), MediaWiki\Auth\ConfirmLinkAuthenticationRequest::getUniqueId(), MediaWiki\Auth\AuthenticationRequest::getUsernameFromRequests(), ForeignAPIRepo::httpGet(), Parser::interwikiTransclude(), SpecialChangeCredentials::loadAuth(), AuthManagerSpecialPage::loadAuth(), ApiAuthManagerHelper::loadAuthenticationRequests(), MediaWiki\Auth\AuthenticationRequest::loadRequestsFromSubmission(), ResourceLoaderClientHtml::makeContext(), ApiQueryTestBase::merge(), MediaWiki\Auth\AuthenticationRequest::mergeFieldInfo(), WebRequestTest::mockWebRequest(), AuthManagerSpecialPage::needsSubmitButton(), MultiHttpClient::normalizeRequests(), RestbaseVirtualRESTService::onParsoid3Request(), RestbaseVirtualRESTService::onParsoidRequests(), ParsoidVirtualRESTService::onRequests(), RestbaseVirtualRESTService::onRequests(), VirtualRESTService::onRequests(), SwiftVirtualRESTService::onRequests(), SwiftVirtualRESTService::onResponses(), SpecialUploadStash::outputRemoteScaledThumb(), AuthManagerSpecialPage::performAuthenticationStep(), MediaWiki\Auth\AuthManagerTest::provideAccountCreation(), MediaWiki\Auth\AuthManagerTest::provideAccountLink(), MediaWiki\Auth\AuthManagerTest::provideAuthentication(), MediaWiki\Auth\AuthenticationResponseTest::provideConstructors(), MediaWiki\Auth\AbstractSecondaryAuthenticationProvider::providerRevokeAccessForUser(), MediaWiki\Auth\AbstractPrimaryAuthenticationProvider::providerRevokeAccessForUser(), UploadFromUrl::reallyFetchFile(), Http::request(), VirtualRESTServiceClient::runMulti(), MultiHttpClient::runMultiCurl(), MultiHttpClient::runMultiHttp(), RESTBagOStuff::set(), MediaWiki\Auth\AuthPluginPrimaryAuthenticationProvider::setDomain(), MediaWiki\Auth\AuthManagerAuthPlugin::setPassword(), SpecialChangeCredentials::showSubpageList(), MediaWiki\Auth\AbstractPrimaryAuthenticationProviderTest::testAbstractPrimaryAuthenticationProvider(), MediaWiki\Auth\AbstractSecondaryAuthenticationProviderTest::testAbstractSecondaryAuthenticationProvider(), MediaWiki\Auth\LocalPasswordPrimaryAuthenticationProviderTest::testAccountCreation(), MediaWiki\Auth\AuthPluginPrimaryAuthenticationProviderTest::testAccountCreation(), MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProviderTest::testAccountCreation(), MediaWiki\Auth\AuthManagerTest::testAccountCreation(), MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProviderTest::testAccountCreationEmail(), MediaWiki\Auth\AuthManagerTest::testAccountLink(), OutputPageTest::testAddAcceptLanguage(), ApiMainTest::testAddRequestedFieldsCurTimestamp(), ApiMainTest::testAddRequestedFieldsRequestId(), ApiMainTest::testAddRequestedFieldsResponseLangInfo(), MediaWiki\Auth\AuthManagerTest::testAllowsAuthenticationDataChange(), MediaWiki\Auth\AuthPluginPrimaryAuthenticationProviderTest::testAuthentication(), MediaWiki\Auth\LocalPasswordPrimaryAuthenticationProviderTest::testAuthentication(), MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProviderTest::testAuthentication(), MediaWiki\Auth\AuthManagerTest::testAuthentication(), MediaWiki\Auth\AuthManagerTest::testAutoCreateOnLogin(), MediaWiki\Auth\LocalPasswordPrimaryAuthenticationProviderTest::testBasics(), MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProviderTest::testBasics(), MediaWiki\Auth\AuthManagerTest::testBeginAccountCreation(), MediaWiki\Auth\ConfirmLinkSecondaryAuthenticationProviderTest::testBeginLinkAttempt(), MediaWiki\Auth\AuthManagerTest::testChangeAuthenticationData(), ApiMainTest::testCheckConditionalRequestHeadersFailed(), EditPageTest::testCheckDirectEditingDisallowed_forNonTextContent(), ApiMainTest::testCheckExecutePermissionPromiseNonWrite(), ApiMainTest::testCheckMaxLagFailed(), FauxRequestTest::testConstructInvalidData(), FauxRequestTest::testConstructInvalidSession(), MediaWiki\Auth\AuthPluginPrimaryAuthenticationProviderTest::testConstruction(), MediaWiki\Auth\AuthManagerTest::testContinueAccountCreation(), MediaWiki\Auth\ConfirmLinkSecondaryAuthenticationProviderTest::testContinueLinkAttempt(), FauxRequestTest::testCookies(), FauxRequestTest::testCookiesDefaultPrefix(), MediaWiki\Auth\TemporaryPasswordAuthenticationRequestTest::testDescribeCredentials(), MediaWiki\Auth\PasswordAuthenticationRequestTest::testDescribeCredentials(), MediaWiki\Auth\PasswordDomainAuthenticationRequestTest::testDescribeCredentials(), FauxRequestTest::testDummies(), MediaWiki\Auth\AbstractPasswordPrimaryAuthenticationProviderTest::testFailResponse(), MediaWiki\Auth\LocalPasswordPrimaryAuthenticationProvider::testForAccountCreation(), MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProvider::testForAccountCreation(), WebRequestTest::testGetArray(), MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProviderTest::testGetAuthenticationRequests(), MediaWiki\Auth\AuthManagerTest::testGetAuthenticationRequests(), MediaWiki\Auth\AuthManagerTest::testGetAuthenticationRequestsRequired(), WebRequestTest::testGetBool(), WebRequestTest::testGetCheck(), WebRequestTest::testGetElapsedTime(), MediaWiki\Auth\PasswordAuthenticationRequestTest::testGetFieldInfo2(), MediaWiki\Auth\PasswordDomainAuthenticationRequestTest::testGetFieldInfo2(), MediaWiki\Auth\RememberMeAuthenticationRequestTest::testGetFieldInfo_2(), WebRequestTest::testGetFloat(), WebRequestTest::testGetFuzzyBool(), WebRequestTest::testGetFuzzyBoolDefault(), WebRequestTest::testGetInt(), WebRequestTest::testGetIntArray(), WebRequestTest::testGetIntOrNull(), FauxRequestTest::testGetMethod(), FauxRequestTest::testGetQueryValues(), FauxRequestTest::testGetRawVal(), WebRequestTest::testGetRawVal(), FauxRequestTest::testGetRequestURL(), FauxRequestTest::testGetText(), WebRequestTest::testGetText(), MediaWiki\Auth\ButtonAuthenticationRequestTest::testGetUniqueId(), MediaWiki\Auth\ConfirmLinkAuthenticationRequestTest::testGetUniqueId(), MediaWiki\Auth\AuthenticationRequestTest::testGetUsernameFromRequests(), FauxRequestTest::testGetVal(), WebRequestTest::testGetVal(), WebRequestTest::testGetValNormal(), WebRequestTest::testGetValueNames(), FauxRequestTest::testGetValues(), WebRequestTest::testGetValues(), ApiLoginTest::testGotCookie(), MediaWiki\Auth\UserDataAuthenticationRequestTest::testPopulateUser(), FauxRequestTest::testProtocol(), MediaWiki\Auth\LocalPasswordPrimaryAuthenticationProviderTest::testProviderAllowsAuthenticationDataChange(), MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProviderTest::testProviderAllowsAuthenticationDataChange(), MediaWiki\Auth\AuthPluginPrimaryAuthenticationProviderTest::testProviderAllowsAuthenticationDataChange(), MediaWiki\Auth\AuthPluginPrimaryAuthenticationProviderTest::testProviderChangeAuthenticationData(), MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProviderTest::testProviderChangeAuthenticationDataEmail(), MediaWiki\Auth\AbstractSecondaryAuthenticationProviderTest::testProviderRevokeAccessForUser(), MediaWiki\Auth\AbstractPrimaryAuthenticationProviderTest::testProviderRevokeAccessForUser(), MediaWiki\Auth\AbstractPasswordPrimaryAuthenticationProviderTest::testProviderRevokeAccessForUser(), FauxRequestTest::testSessionData(), FauxRequestTest::testSetRequestURL(), ApiMainTest::testSetupModuleInvalidTokenProvided(), ApiMainTest::testSetupModuleNoTokenProvided(), ApiMainTest::testSetupModuleUnknown(), MediaWiki\Auth\CreateFromLoginAuthenticationRequestTest::testState(), MediaWiki\Auth\LocalPasswordPrimaryAuthenticationProviderTest::testTestForAccountCreation(), MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProviderTest::testTestForAccountCreation(), MediaWiki\Auth\ThrottlePreAuthenticationProviderTest::testTestForAuthentication(), MediaWikiTest::testTryNormaliseRedirect(), MediaWiki\Auth\ResetPasswordSecondaryAuthenticationProviderTest::testTryReset(), FauxRequestTest::testWasPosted(), MediaWiki::triggerAsyncJobs(), MediaWiki\Auth\ResetPasswordSecondaryAuthenticationProvider::tryReset(), ApiCSPReport::verifyPostBodyOk(), and wfProxyThumbnailRequest().

◆ $request

do that in ParserLimitReportFormat instead use this to modify the parameters of the image all existing parser cache entries will be invalid To avoid you ll need to handle that somehow (e.g. with the RejectParserCacheValue hook) because MediaWiki won't do it for you. &$defaults also a ContextSource after deleting those rows but within the same transaction you ll probably need to make sure the header is varied on $request

Definition at line 2627 of file hooks.txt.

Referenced by ApiContinuationManager::__construct(), UsersPager::__construct(), AllMessagesTablePager::__construct(), ApiMain::__construct(), SkinTemplate::buildContentNavigationUrls(), SkinTemplate::buildNavUrls(), SkinTemplate::buildPersonalUrls(), SpecialPage::checkLoginSecurityLevel(), CategoryPage::closeShowCategory(), UploadBase::createFromRequest(), ApiPageSetTest::createPageSetWithRedirect(), Article::delete(), SpecialRedirect::dispatchFile(), SwiftFileBackend::doCopyInternal(), SwiftFileBackend::doCreateInternal(), SwiftFileBackend::doDeleteInternal(), SwiftFileBackend::doDescribeInternal(), SpecialImport::doImport(), SwiftFileBackend::doMoveInternal(), SwiftFileBackend::doStoreInternal(), EditPage::edit(), ApiUpload::execute(), SpecialApiHelp::execute(), SpecialNewFiles::execute(), SpecialProtectedpages::execute(), SpecialProtectedtitles::execute(), SpecialContributions::execute(), SpecialExport::execute(), SpecialBlockList::execute(), SpecialAllMessages::execute(), SpecialPrefixindex::execute(), SpecialTags::execute(), LinkSearchPage::execute(), SpecialExpandTemplates::execute(), SpecialWatchlist::execute(), SpecialAllPages::execute(), SpecialPagesWithProp::execute(), SpecialEditTags::execute(), SpecialImport::execute(), MovePageForm::execute(), UserrightsPage::execute(), SpecialEmailUser::execute(), SpecialSearch::execute(), SpecialRevisionDelete::execute(), ApiOptionsTest::executeQuery(), SpecialPageExecutor::executeSpecialPage(), SpecialPageTestBase::executeSpecialPage(), HistoryAction::feed(), SpecialWatchlist::fetchOptionsFromRequest(), Action::getActionName(), ApiUpload::getChunkResult(), EditPage::getContentObject(), DerivativeResourceLoaderContextTest::getContext(), ActionTest::getContext(), MediaWiki\Session\CookieSessionProvider::getCookie(), MWDebug::getDebugInfo(), User::getEditToken(), User::getEditTokenObject(), MediaWiki\Session\SessionManager::getEmptySession(), MediaWiki\Session\SessionManager::getEmptySessionInternal(), McrUndoAction::getFormFields(), MediaWiki\Session\SessionManager::getGlobalSession(), MediaWiki\Session\SessionProvider::getManager(), SpecialEditWatchlist::getMode(), ApiModuleManagerTest::getModuleManager(), SpecialPageAction::getName(), Article::getOldIDFromRequest(), ApiBase::getParameterFromSettings(), SpecialChangeCredentials::getPreservedParams(), RawAction::getRawText(), RedirectSpecialPage::getRedirectQuery(), MediaWiki\Sparql\SparqlClientTest::getRequestFactory(), MediaWiki\Sparql\SparqlClientTest::getRequestMock(), ResourceLoaderTestCase::getResourceLoaderContext(), SpecialChangeCredentials::getReturnUrl(), ApiOptionsTest::getSampleRequest(), MediaWiki\Session\SessionBackend::getSession(), MediaWiki\Session\SessionManager::getSessionById(), SpecialBlock::getTargetAndType(), ApiTokens::getTokenTypes(), MediaWiki\Session\CookieSessionProvider::getUserInfoFromCookies(), ApiMain::handleCORS(), AuthManagerSpecialPage::handleReauthBeforeExecute(), EditPage::handleStatus(), OutputPage::haveCacheVaryCookies(), ThumbnailRenderJob::hitThumbUrl(), EditPage::importFormData(), MediaWiki::initializeArticle(), UploadFromFile::initializeFromRequest(), UploadFromStash::initializeFromRequest(), UploadFromUrl::initializeFromRequest(), UploadBase::initializePathInfo(), EditPage::internalAttemptSave(), HTMLButtonField::isBadIE(), UploadFromStash::isValidRequest(), UploadFromUrl::isValidRequest(), ApiMain::lacksSameOriginSecurity(), LoginSignupSpecialPage::load(), SpecialSearch::load(), AuthManagerSpecialPage::loadAuth(), ProtectionForm::loadData(), HTMLForm::loadData(), HTMLSubmitField::loadDataFromRequest(), HTMLUsersMultiselectField::loadDataFromRequest(), HTMLTitlesMultiselectField::loadDataFromRequest(), HTMLRestrictionsField::loadDataFromRequest(), HTMLExpiryField::loadDataFromRequest(), HTMLSizeFilterField::loadDataFromRequest(), HTMLDateTimeField::loadDataFromRequest(), HTMLAutoCompleteSelectField::loadDataFromRequest(), HTMLCheckField::loadDataFromRequest(), HTMLFormFieldCloner::loadDataFromRequest(), HTMLSelectAndOtherField::loadDataFromRequest(), HTMLSelectOrOtherField::loadDataFromRequest(), HTMLMultiSelectField::loadDataFromRequest(), HTMLCheckMatrix::loadDataFromRequest(), HTMLFormField::loadDataFromRequest(), SpecialUndelete::loadRequest(), SpecialUpload::loadRequest(), LoginSignupSpecialPage::loadRequestParameters(), SpecialMergeHistory::loadRequestParams(), Profiler::logData(), ApiBase::logFeatureUsage(), ApiMain::logRequest(), MediaWiki::main(), PageDataRequestHandlerTest::makeOutputPage(), User::matchEditToken(), User::matchEditTokenNoSuffix(), ApiQueryTestBase::merge(), MWDebugTest::newApiRequest(), SpecialPageExecutor::newContext(), User::newFromSession(), OutputPageTest::newInstance(), MediaWiki\Auth\TemporaryPasswordAuthenticationRequest::newInvalid(), SpecialChangeEmail::onSuccess(), RollbackAction::onView(), RawAction::onView(), HistoryAction::onView(), ImagePage::openShowImage(), MediaWiki::parseTitle(), MediaWiki::performAction(), MediaWiki::performRequest(), MediaWiki\Session\CookieSessionProvider::persistSession(), SpecialSearch::powerSearch(), MediaWiki::preOutputCommit(), SkinTemplate::prepareQuickTemplate(), EditPage::previewOnOpen(), MWRestrictionsTest::provideCheck(), ApiQueryContinueTestBase::query(), MediaWiki\Sparql\SparqlClient::query(), SquidPurgeClient::queuePurge(), ApiQueryRandom::run(), EditPage::safeUnicodeInput(), ProtectionForm::save(), MediaWiki\Session\SessionBackend::save(), SpecialSearch::saveNamespaces(), ApiUpload::selectUploadModule(), User::setCookies(), SpecialPageExecutor::setEditTokenFromUser(), SpecialBlock::setParameter(), AuthManagerSpecialPage::setRequest(), MWHttpRequestTestCase::setUp(), ApiMain::setupExternalResponse(), SkinTemplate::setupTemplateForOutput(), Article::showDiffPage(), SpecialExpandTemplates::showHtmlPreview(), OutputPage::showPermissionsErrorPage(), Article::showRedirectedFromHeader(), HTMLSubmitField::skipLoadData(), SpecialEditTags::submit(), WebRequestTest::testAcceptLang(), ApiOptionsTest::testAnon(), MWDebugTest::testAppendDebugInfoToApiResultXmlFormat(), MediaWiki\Sparql\SparqlClientTest::testBadQuery(), MWHttpRequestTestCase::testBasicAuthentication(), MediaWiki\Auth\ConfirmLinkSecondaryAuthenticationProviderTest::testBeginLinkAttempt(), MWRestrictionsTest::testCheck(), ApiMainTest::testCheckConditionalRequestHeaders(), OutputPageTest::testCheckLastModified(), MediaWiki\Session\BotPasswordSessionProviderTest::testCheckSessionInfo(), ApiMainTest::testConditionalRequestHeadersOutput(), MediaWiki\Session\SessionTest::testConstructor(), MediaWiki\Auth\ConfirmLinkSecondaryAuthenticationProviderTest::testContinueLinkAttempt(), MediaWiki\Session\CookieSessionProviderTest::testCookieData(), SpecialPageDataTest::testExecute(), PasswordResetTest::testExecute_email(), ApiBaseTest::testExtractRequestParams(), MWHttpRequestTestCase::testFactoryDefaults(), HTMLRestrictionsFieldTest::testForm(), ActionTest::testGetActionName_whenCanNotUseWikiPage_defaultsToView(), FauxRequestTest::testGetAllHeaders(), MediaWiki\Session\CookieSessionProviderTest::testGetCookie(), MediaWiki\Session\SessionManagerTest::testGetEmptySession(), MWHttpRequestTestCase::testgetFinalUrl(), MediaWiki\Session\SessionManagerTest::testGetGlobalSession(), WebRequestTest::testGetIP(), WebRequestTest::testGetIpLackOfRemoteAddrThrowAnException(), MWHttpRequestTestCase::testGetResponseHeaders(), MediaWiki\Session\SessionManagerTest::testGetSessionForRequest(), MediaWiki\Session\SessionManagerTest::testGetSessionFromInfo(), MediaWiki\Session\ImmutableSessionProviderWithCookieTest::testGetSessionIdFromCookie(), FauxRequestTest::testGetSetHeader(), MWHttpRequestTestCase::testGetStatus(), PageDataRequestHandlerTest::testHandleRequest(), OutputPageTest::testHaveCacheVaryCookies(), ApiFormatBaseTest::testHtmlHeader(), PageDataRequestHandlerTest::testHttpContentNegotiation(), ApiQuerySearchTest::testInterwikiResults(), UserTest::testIpBlockCookieIgnoredWhenUserLoggedIn(), UserTest::testIpBlockCookieNotSet(), UserTest::testIpBlockCookieSet(), UserTest::testIsPingLimitable(), MWHttpRequestTestCase::testIsRedirect(), ApiMainTest::testLacksSameOriginSecurity(), MediaWiki\Session\SessionManagerTest::testLoadSessionInfoFromStore(), BotPasswordTest::testLogin(), MediaWiki\Session\BotPasswordSessionProviderTest::testNewSessionInfoForRequest(), ApiOptionsTest::testNoChanges(), ApiOptionsTest::testNoOptionname(), ApiOptionsTest::testNoToken(), ApiOptionsTest::testOptionManupulation(), MediaWiki\Sparql\SparqlClientTest::testOptions(), MediaWiki\Session\ImmutableSessionProviderWithCookieTest::testPersistSession(), MediaWiki\Session\CookieSessionProviderTest::testPersistSession(), MediaWiki\Session\CookieSessionProviderTest::testPersistSessionWithHook(), MediaWiki\Session\BotPasswordSessionProviderTest::testProvideSessionInfo(), MediaWiki\Session\CookieSessionProviderTest::testProvideSessionInfo(), MediaWiki\Sparql\SparqlClientTest::testQuery(), ApiOptionsTest::testReset(), MediaWiki\Session\SessionBackendTest::testResetIdOfGlobalSession(), ApiOptionsTest::testResetKinds(), ApiQuerySearchTest::testSearchResults(), MWHttpRequestTestCase::testSetCallback(), MWHttpRequestTestCase::testSetCookie(), MWHttpRequestTestCase::testSetCookieJar(), MWHttpRequestTestCase::testSetData(), MWHttpRequestTestCase::testSetHeader(), MediaWiki\Session\CookieSessionProviderTest::testSetLoggedOutCookie(), MWHttpRequestTestCase::testSetUserAgent(), UserTest::testSoftBlockRanges(), SpecialPageDataTest::testSpecialPageWithoutParameters(), ApiPageSetTest::testSpecialRedirects(), MediaWiki\Session\CookieSessionProviderTest::testSuggestLoginUsername(), MediaWiki\Session\SessionBackendTest::testTakeOverGlobalSession(), MediaWiki\Session\SessionBackendTest::testUnpersistOfGlobalSession(), MediaWiki\Session\ImmutableSessionProviderWithCookieTest::testUnpersistSession(), MediaWiki\Session\CookieSessionProviderTest::testUnpersistSession(), UploadStashTest::testValidRequestWithInvalidRequests(), UploadStashTest::testValidRequestWithValidRequests(), EditPage::tokenOk(), MediaWiki::tryNormaliseRedirect(), OutputPage::userCanPreview(), CategoryPage::view(), ImagePage::view(), Article::view(), and wfLogProfilingData().

◆ $requests

◆ $res

see documentation in includes Linker php for Linker::makeImageLink or false for current& $res

Definition at line 936 of file hooks.txt.

◆ $resourceLoader

do that in ParserLimitReportFormat instead use this to modify the parameters of the image all existing parser cache entries will be invalid To avoid you ll need to handle that somehow (e.g. with the RejectParserCacheValue hook) because MediaWiki won't do it for you. &$defaults also a ContextSource after deleting those rows but within the same transaction you ll probably need to make sure the header is varied on and they can depend only on the ResourceLoaderContext such as when responding to a resource loader request or generating HTML output& $resourceLoader

◆ $ResourceLoader

For QUnit the mediawiki tests qunit testrunner dependency will be added to any module& $ResourceLoader

Definition at line 2845 of file hooks.txt.

◆ $response

this hook is for auditing only $response

Definition at line 785 of file hooks.txt.

Referenced by ApiMain::checkMaxLag(), ApiFormatBaseTest::encodeData(), SpecialLinkAccounts::execute(), SpecialUnlinkAccounts::execute(), RunJobs::execute(), SpecialChangeCredentials::execute(), LoginSignupSpecialPage::execute(), SpecialPageExecutor::executeSpecialPage(), EtcdConfig::fetchAllFromEtcd(), EtcdConfig::fetchAllFromEtcdServer(), MediaWikiPageNameNormalizerTestMockHttp::get(), ApiMainTest::getNonInternalApiMain(), ApiMain::handleCORS(), ApiMain::handleException(), ParserEditTests::handleFailure(), SpecialUnlinkAccounts::handleFormSubmit(), SpecialChangeCredentials::handleFormSubmit(), AuthManagerSpecialPage::handleFormSubmit(), RawAction::onView(), OutputPage::output(), MediaWiki\Session\ImmutableSessionProviderWithCookie::persistSession(), MediaWiki\Session\CookieSessionProvider::persistSession(), ResourceLoader::respond(), JobRunner::run(), MediaWiki\Logger\Monolog\KafkaHandler::send(), OutputPage::sendCacheControl(), ApiMain::sendCacheHeaders(), MediaWiki\Session\CookieSessionProvider::setForceHTTPSCookie(), EditPage::setPostEditCookie(), SpecialUndelete::showFile(), MediaWiki\Auth\AuthManagerTest::testAccountCreation(), MediaWiki\Auth\AuthManagerTest::testAccountLink(), MediaWiki\Auth\AuthManagerTest::testAuthentication(), ApiMainTest::testConditionalRequestHeadersOutput(), ApiFormatBaseTest::testDisable(), SpecialPageDataTest::testExecute(), ApiFormatBaseTest::testFilenameEncoding(), MediaWiki\Auth\ConfirmLinkSecondaryAuthenticationProviderTest::testGetAuthenticationRequests(), MediaWiki\Auth\ResetPasswordSecondaryAuthenticationProviderTest::testGetAuthenticationRequests(), MediaWiki\Auth\CheckBlocksSecondaryAuthenticationProviderTest::testGetAuthenticationRequests(), MediaWiki\Auth\AuthPluginPrimaryAuthenticationProviderTest::testGetAuthenticationRequests(), MediaWiki\Auth\AbstractPasswordPrimaryAuthenticationProviderTest::testGetAuthenticationRequests(), PageDataRequestHandlerTest::testHandleRequest(), ApiQuerySearchTest::testInterwikiResults(), ResourceLoaderTest::testMakeModuleResponseConcat(), ResourceLoaderTest::testMakeModuleResponseEmpty(), ResourceLoaderTest::testMakeModuleResponseError(), ResourceLoaderTest::testMakeModuleResponseErrorCSS(), ResourceLoaderTest::testMakeModuleResponseExtraHeaders(), ResourceLoaderTest::testMakeModuleResponseExtraHeadersMulti(), ResourceLoaderTest::testMakeModuleResponseStartupError(), MultiHttpClientTest::testMultiHttpClientMultipleFailure(), MultiHttpClientTest::testMultiHttpClientMultipleSuccess(), ApiFormatBaseTest::testNullMimeType(), ApiQueryPrefixSearchTest::testOffsetContinue(), ApiOptionsTest::testOptionManupulation(), MediaWikiTest::testPostSendJobDoesNotSetCookie(), BatchRowUpdateTest::testReaderBasicIterate(), ApiOptionsTest::testReset(), ApiOptionsTest::testResetChangeOption(), ApiOptionsTest::testResetKinds(), ApiQuerySearchTest::testSearchResults(), ResourceLoader::tryRespondFromFileCache(), MediaWiki\Session\ImmutableSessionProviderWithCookie::unpersistSession(), MediaWiki\Session\CookieSessionProvider::unpersistSession(), and wfStreamThumb().

◆ $ret