MediaWiki  1.33.1
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. 'ImgAuthModifyHeaders':Executed just before a file is streamed to a user via img_auth.php, allowing headers to be modified beforehand. $title:LinkTarget object & $headers:HTTP headers(name=> value, names are case insensitive). Two headers get special handling:If-Modified-Since(value must be a valid HTTP date) and Range(must be of the form "bytes=(\d*-\d*)") will be honored when streaming the file. '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)
 

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 (which can be changed) by the hook callback.
 
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 When $user is not it can be in the form of< username >< more info > e g for bot passwords intended to be added to log contexts Fields it might only if the login was with a bot password 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
 
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
 
null means default$customAttribs
 
null for the 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
 
this hook is for auditing only or null if authentication failed before getting that far or null if we can t even determine that When $user is not it can be in the form of< username >< more info > e g for bot passwords $extraData
 
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 When $user is not it can be in the form of< username >< more info > e g for bot passwords intended to be added to log contexts Fields it might only if the login was with a bot password 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 When $user is not it can be in the form of< username >< more info > e g for bot passwords intended to be added to log contexts Fields it might only if the login was with a bot password 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 When $user is not it can be in the form of< username >< more info > e g for bot passwords intended to be added to log contexts Fields it might only if the login was with a bot password 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 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 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
 
$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 When $user is not it can be in the form of< username >< more info > e g for bot passwords intended to be added to log contexts Fields it might only if the login was with a bot password 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
 
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 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 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 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 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 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 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 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 When $user is not it can be in the form of< username >< more info > e g for bot passwords intended to be added to log contexts Fields it might only if the login was with a bot password 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 When $user is not it can be in the form of< username >< more info > e g for bot passwords intended to be added to log contexts Fields it might only if the login was with a bot password 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 When $user is not it can be in the form of< username >< more info > e g for bot passwords intended to be added to log contexts Fields it might only if the login was with a bot password 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 When $user is not it can be in the form of< username >< more info > e g for bot passwords intended to be added to log contexts Fields it might only if the login was with a bot password 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 When $user is not it can be in the form of< username >< more info > e g for bot passwords intended to be added to log contexts Fields it might only if the login was with a bot password 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 When $user is not it can be in the form of< username >< more info > e g for bot passwords intended to be added to log contexts Fields it might only if the login was with a bot password 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 When $user is not it can be in the form of< username >< more info > e g for bot passwords intended to be added to log contexts Fields it might only if the login was with a bot password 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 When $user is not it can be in the form of< username >< more info > e g for bot passwords intended to be added to log contexts Fields it might only if the login was with a bot password 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 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 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 patches Consider
 
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
 
null for the wiki Added should default to null in handler functions
 
null for the 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 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 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
 
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 GetRelativeTimestamp
 
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 When $user is not it can be in the form of< username >< more info > e g for bot passwords intended to be added to log contexts Fields it might only if the login was with a bot password 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 of a hook
 
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 wiki Added in
 
this hook is for auditing only or null if authentication failed before getting that far or null if we can t even determine that When $user is not it can be in the form of< username >< more info > e g for bot passwords intended to be added to log contexts Fields it might include
 
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
 
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 or false if none Defaults to false if not set multiOccurrence Can this option be passed multiple times Defaults to false if not set MaintenanceRefreshLinksInit
 
static configuration should be added through ResourceLoaderGetConfigVars instead can be used to get the real title ManualLogEntryBeforePublish
 
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
 
this hook is for auditing only or null if authentication failed before getting that far or null if we can t even determine that When $user is not null
 
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 When $user is not it can be in the form of< username >< more info > e g for bot passwords intended to be added to log contexts Fields it might only if the login was with a bot password 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
 
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 remoteExtPath
 
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 or false if none Defaults to false if not set multiOccurrence Can this option be passed multiple times Defaults to false if not set 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 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 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 1991 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 1266 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 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   
)

◆ 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 ( which 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(), UploadChunkVerificationException::__construct(), MediaWiki\Extensions\ParserFunctions\ExprError::__construct(), MediaWiki\Widget\SizeFilterWidget::__construct(), TransformParameterError::__construct(), TransformTooBigImageAreaError::__construct(), MediaTransformError::__construct(), MalformedTitleException::__construct(), HTMLAutoCompleteSelectField::__construct(), MessageContent::__construct(), MediaWiki\Widget\DateInputWidget::__construct(), UploadStashFile::__construct(), Linker::accesskey(), LogPage::actionText(), Action::addHelpLink(), Article::addHelpLink(), MediaHandler::addMeta(), WikitextContent::addSectionHeader(), ReplaceTextHooks::addToAdminLinks(), ParserOutput::addTrackingCategory(), JsonContent::arrayTable(), SpecialVersion::arrayToString(), MediaWiki\Auth\AuthManager::autoCreateUser(), MediaWiki\Auth\AuthManager::beginAccountCreation(), MediaWiki\Auth\AuthManager::beginAccountLink(), MediaWiki\Auth\ConfirmLinkSecondaryAuthenticationProvider::beginLinkAttempt(), TOTPSecondaryAuthenticationProvider::beginSecondaryAuthentication(), Linker::blockLink(), ProtectionForm::buildForm(), Xml::buildForm(), ChangesFeed::buildItems(), SpecialEditWatchlist::buildTools(), MediaWiki\Auth\AuthManager::checkAccountCreatePermissions(), SpecialPage::checkLoginSecurityLevel(), MediaWiki\Permissions\PermissionManager::checkSiteConfigPermissions(), MediaWiki\Permissions\PermissionManager::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(), TOTPSecondaryAuthenticationProvider::continueSecondaryAuthentication(), Installer::createMainpage(), Xml::dateMenu(), CoreParserFunctions::defaultsort(), Article::delete(), MediaWiki\Session\SessionProvider::describe(), TOTPAuthenticationRequest::describeCredentials(), MediaWiki\Auth\PasswordDomainAuthenticationRequest::describeCredentials(), MediaWiki\Auth\PasswordAuthenticationRequest::describeCredentials(), MediaWiki\Auth\TemporaryPasswordAuthenticationRequest::describeCredentials(), MediaWiki\Session\SessionProvider::describeMessage(), TitleBlacklistHooks::displayBlacklistOverrideNotice(), CoreParserFunctions::displaytitle(), Block::doAutoblock(), FileDeleteForm::doDelete(), Article::doDelete(), PdfHandler::doThumbError(), MockDjVuHandler::doTransform(), TransformationalImageHandler::doTransform(), DjVuHandler::doTransform(), SvgHandler::doTransform(), WikiPage::doUpdateRestrictions(), WebInstaller::downloadLinkHook(), Linker::emailLink(), WebInstallerInstall::endStage(), Installer::envCheckDB(), ImageMap::error(), ApiImageRotate::execute(), WebInstallerDBConnect::execute(), WebInstallerExistingWiki::execute(), WebInstallerRestart::execute(), WebInstallerWelcome::execute(), WebInstallerName::execute(), ApiEditPage::execute(), WebInstallerInstall::execute(), WebInstallerUpgrade::execute(), ApiQueryTitleBlacklist::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(), SimpleCaptcha::filterLink(), 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(), TitleBlacklist::getBlacklistText(), User::getBlockedStatus(), ReCaptcha::getCaptchaInfo(), CategoryMembershipChange::getChangeMessageText(), WebInstaller::getCheckBox(), InputBox::getCommentForm(), OracleInstaller::getConnectForm(), PostgresInstaller::getConnectForm(), MysqlInstaller::getConnectForm(), MssqlInstaller::getConnectForm(), SpecialVersion::getCopyrightAndAuthorList(), EditPage::getCopyrightWarning(), InputBox::getCreateForm(), Title::getDefaultMessageText(), Gadget::getDescription(), Interwiki::getDescription(), LogPage::getDescription(), MediaWiki\Config\ConfigRepository::getDescriptionOf(), FeedUtils::getDiffLink(), ImageHandler::getDimensionsString(), Title::getEditNotices(), Status::getErrorMessage(), SpecialUpload::getExistsWarning(), UploadStash::getExtensionForPath(), SpecialVersion::getExtensionTypes(), TitleBlacklistAuthenticationRequest::getFieldInfo(), MediaWiki\Auth\CreationReasonAuthenticationRequest::getFieldInfo(), ReCaptchaAuthenticationRequest::getFieldInfo(), ReCaptchaNoCaptchaAuthenticationRequest::getFieldInfo(), MediaWiki\Auth\UsernameAuthenticationRequest::getFieldInfo(), MediaWiki\Auth\PasswordAuthenticationRequest::getFieldInfo(), TOTPAuthenticationRequest::getFieldInfo(), MediaWiki\Auth\TemporaryPasswordAuthenticationRequest::getFieldInfo(), MediaWiki\Auth\UserDataAuthenticationRequest::getFieldInfo(), MediaWiki\Auth\ConfirmLinkAuthenticationRequest::getFieldInfo(), CaptchaAuthenticationRequest::getFieldInfo(), MediaWiki\Auth\PasswordDomainAuthenticationRequest::getFieldInfo(), MediaWiki\Auth\RememberMeAuthenticationRequest::getFieldInfo(), UploadStash::getFile(), WebInstallerDocument::getFileContents(), NumericUppercaseCollation::getFirstLetter(), IcuCollation::getFirstLetter(), FancyCaptcha::getFormInformation(), 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(), SimpleCaptcha::getMessage(), Licenses::getMessageFromParams(), ErrorPageError::getMessageObject(), MalformedTitleException::getMessageObject(), GenerateJqueryMsgData::getMessagesAndTests(), InputBox::getMoveForm(), Interwiki::getName(), LogPage::getName(), WebInstaller::getPageListItem(), MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProvider::getPasswordResetData(), GadgetHooks::getPreferences(), EditPage::getPreviewLimitReport(), WebInstaller::getRadioElements(), Gadget::getRawDescription(), LogPage::getRcComment(), LogPage::getRcCommentIRC(), DatabaseInstaller::getReadableName(), Block::getRedactedName(), Article::getRedirectHeaderHtml(), MWTimestamp::getRelativeTimestamp(), User::getRightDescription(), InputBox::getSearchForm(), InputBox::getSearchForm2(), MysqlInstaller::getSettingsForm(), MssqlInstaller::getSettingsForm(), ImageHandler::getShortDesc(), SpecialBlock::getSuggestedDurations(), ReplaceAll::getSummary(), CategoryTree::getTag(), MediaWiki\Preferences\DefaultPreferencesFactory::getTimeZoneList(), MWTimestamp::getTimezoneMessage(), LogPage::getTitleLink(), TrackingCategories::getTrackingCategories(), CategoryMembershipChange::getUser(), DoubleRedirectJob::getUser(), 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(), CoreParserFunctions::intFunction(), SimpleCaptcha::isIPWhitelisted(), User::isUsableName(), Block::isWhitelistedFromAutoblocks(), WebInstaller::label(), Xml::languageSelector(), UploadStash::listFiles(), TitleBlacklist::loadWhitelist(), BotPassword::login(), MediaWiki\Linker\LinkRenderer::makeBrokenLink(), ContentSecurityPolicy::makeCSPDirectives(), CaptchaPreAuthenticationProvider::makeError(), Skin::makeI18nUrl(), BaseTemplate::makeLink(), ApiBase::makeMessage(), BaseTemplate::makeSearchButton(), BaseTemplate::makeSearchInput(), Linker::makeThumbLink2(), 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(), TitleBlacklistEntry::newFromString(), Title::newMainPage(), WikiImporter::notice(), Language::numLink(), JsonContent::objectTable(), OATHAuthHooks::onGetPreferences(), SpamBlacklistHooks::onUploadVerifyUpload(), 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(), SpamRegexBatch::regexesFromMessage(), MediaWiki\Extensions\ParserFunctions\ParserFunctions::rel2abs(), UploadStash::removeFile(), ImageMap::render(), InputBox::render(), CategoryTree::renderNodeInfo(), CategoryTree::renderParents(), WikitextContent::replaceSection(), SpecialPageTest::requireLoginAnonProvider(), WikiEditorHooks::resourceLoaderGetConfigVars(), CheckStorage::restoreText(), Linker::revComment(), Linker::revDeleteLink(), Linker::revDeleteLinkDisabled(), Linker::revUserLink(), Linker::revUserTools(), DoubleRedirectJob::run(), MediaWiki\Storage\PageUpdater::saveRevision(), 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(), QuestyCaptcha::showHelp(), SimpleCaptcha::showHelp(), WebInstallerExistingWiki::showKeyForm(), WebInstaller::showMessage(), Article::showMissingArticle(), Article::showNamespaceHeader(), Article::showPatrolFooter(), SpecialVersion::softwareInformation(), Linker::specialLink(), WebInstaller::startPageWrapper(), WebInstallerInstall::startStage(), UploadStash::stashFile(), WebInstallerName::submit(), ApiErrorFormatterTest::testAddMessagesFromStatus_filter(), MediaWiki\Auth\AuthManagerTest::testAutoAccountCreation(), ApiLoginTest::testBotPasswordLocked(), ApiLoginTest::testBotPasswordThrottled(), MediaWiki\Auth\AuthManagerTest::testCheckAccountCreatePermissions(), PasswordPolicyStructureTest::testCheckMessage(), ApiQuerySiteinfoTest::testContinuation(), MediaWiki\Auth\AuthManagerTest::testCreateFromLogin(), ApiLoginTest::testDeprecatedUserLogin(), ApiErrorFormatterTest::testErrorFormatter(), ApiErrorFormatterTest::testErrorFormatterBC(), PasswordPolicyStructureTest::testFlagMessage(), 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(), XmlTest::testLanguageSelector(), LogFormatterTest::testLogParamsTypeMsg(), LogFormatterTest::testLogParamsTypeMsgContent(), MediaWiki\Auth\AuthenticationRequestTest::testMergeFieldInfo(), ResourcesTest::testMissingMessages(), PasswordPolicyChecksTest::testPasswordPolicyDescriptionsExist(), CaptchaPreAuthenticationProviderTest::testPostAuthentication(), CaptchaPreAuthenticationProviderTest::testPostAuthentication_disabled(), ApiQuerySiteinfoTest::testSkins(), MediaWiki\Auth\ThrottlePreAuthenticationProviderTest::testTestForAuthentication(), ExtraParserTest::testTrackingCategory(), MediaWiki\Auth\ResetPasswordSecondaryAuthenticationProviderTest::testTryReset(), ApiLoginTest::testUnsupportedAuthResponseType(), ArticleViewTest::testViewMessagePage(), MediaWiki\Extensions\ParserFunctions\ParserFunctions::timeCommon(), Linker::titleAttrib(), Linker::tocList(), MediaWiki\Extensions\ParserFunctions\ParserFunctions::tooLongError(), File::transformErrorOutput(), BitmapHandler::transformGd(), Language::truncateHtml(), Language::truncateInternal(), MediaWiki\Auth\ResetPasswordSecondaryAuthenticationProvider::tryReset(), PageArchive::undeleteRevisions(), TitleBlacklistHooks::userCan(), Linker::userTalkLink(), Linker::userToolLinks(), SpamBlacklistHooks::validate(), TitleBlacklistHooks::validateBlacklist(), 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 1476 of file hooks.txt.

Referenced by ProtectionForm::__construct(), EditPage::__construct(), CategoryTreeHooks::articleFromTitle(), EditPageTest::assertEdit(), Orphans::checkSeparation(), CategoryViewer::columnList(), SpecialNuke::doDelete(), WikiEditorHooks::doEventLogging(), WikiEditorHooks::editPageAttemptSave(), WikiEditorHooks::editPageAttemptSaveAfter(), WikiEditorHooks::editPageShowEditFormInitial(), ApiParse::execute(), RebuildFileCache::execute(), follows(), ParserCache::get(), BaseBlacklist::getArticleText(), ParserCache::getDirty(), ParserCache::getETag(), ParserCache::getKey(), ParserCache::getParserOutputKey(), ListredirectsPage::getRedirectTarget(), if(), ParserCache::incrementStats(), MediaWiki::initializeArticle(), Article::newFromWikiPage(), SpamBlacklistHooks::onArticleDelete(), RenameuserHooks::onShowMissingArticle(), 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 1993 of file hooks.txt.

Referenced by PPNode_Hash_Tree::__toString(), HTMLForm::addHiddenField(), MediaWiki\Linker\LinkRenderer::buildAElement(), ProtectionForm::buildForm(), Xml::buildTable(), Xml::buildTableRow(), MediaWiki\EditPage\TextboxBuilder::buildTextboxAttribs(), Xml::check(), Xml::checkLabel(), EditPage::displayPreviewArea(), WebInstaller::docLink(), Skin::doEditSectionLink(), Xml::element(), Xml::elementClean(), XmlTypeCheck::elementClose(), XmlTypeCheck::elementOpen(), 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(), MonoBookTemplate::getCactions(), DatabaseInstaller::getCheckBox(), MediaTransformOutput::getDescLinkAttribs(), MediaWiki\EditPage\TextConflictHelper::getEditConflictMainTextBox(), VFormHTMLForm::getFormAttributes(), HTMLForm::getFormAttributes(), ResourceLoaderModule::getHeaders(), HTMLForm::getHiddenFields(), ChangeTagsRevisionItem::getHTML(), ChangeTagsLogItem::getHTML(), CategoryViewer::getHTML(), RevDelRevisionItem::getHTML(), HTMLSizeFilterField::getInputHTML(), HTMLFancyCaptchaField::getInputHTML(), HTMLReCaptchaField::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(), HistoryPager::historyLine(), Poem::indentVerse(), Xml::input(), Xml::inputLabel(), Xml::inputLabelSep(), Xml::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(), SpecialInterwiki::makeTable(), MediaWiki\Linker\LinkRenderer::mergeAttribs(), MediaWiki\EditPage\TextboxBuilder::mergeClassesIntoAttributes(), SpecialRecentChanges::namespaceFilterForm(), Xml::openElement(), Xml::option(), SpecialRecentChanges::optionsPanel(), Licenses::outputOption(), Xml::password(), CoreTagHooks::pre(), Xml::radio(), Xml::radioLabel(), EnhancedChangesList::recentChangesBlockLine(), OldChangesList::recentChangesLine(), ImageMap::render(), Poem::renderPoem(), LinkHolderArray::replaceInternal(), 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(), SideBarTest::testRespectExternallinktarget(), SideBarTest::testRespectWgnofollowlinks(), SideBarTest::testTestAttributesAssertionHelper(), Xml::textarea(), MultimediaViewerHooks::thumbnailBeforeProduceHTML(), TraditionalImageGallery::toHTML(), ThumbnailImage::toHtml(), Linker::tooltipAndAccesskeyAttribs(), Linker::userToolLinks(), 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 780 of file hooks.txt.

Referenced by HTMLSelectLanguageField::__construct(), LocalisationUpdate\JSONReader::__construct(), ZipDirectoryReaderError::__construct(), UploadStashException::__construct(), ApiRawMessage::__construct(), LocalizedException::__construct(), MessageCacheUpdate::__construct(), MediaWiki\Session\MetadataMergeException::__construct(), ApiQueryBacklinks::__construct(), ApiMessage::__construct(), ApiMain::__construct(), ApiBase::addBlockInfoToStatus(), ApiErrorFormatter::addError(), ApiBase::addError(), Language::addMagicWordsByLang(), ApiErrorFormatter::addWarning(), ApiBase::addWarning(), ApiTestCase::apiExceptionHasCode(), EmailConfirmation::attemptConfirm(), EmailInvalidation::attemptInvalidate(), LanguageCode::bcp47(), SkinTemplate::buildContentNavigationUrls(), Language::classFromCode(), MessageCache::clear(), Wikimedia\StaticArrayWriter::create(), ApiMessage::create(), ImagePage::createXmlOptionStringForLanguage(), Language::dateTimeObjFormat(), ApiBase::dieWithError(), ApiBase::dieWithErrorOrDebug(), SpecialRedirect::dispatch(), RebuildLocalisationCache::doRebuild(), MessageCacheUpdate::doUpdate(), ZipDirectoryReader::error(), ApiCSPReport::error(), MSCompoundFileReader::error(), ApiBase::errorArrayToStatus(), ApiMain::errorMessagesFromException(), PageExists::execute(), EmailInvalidation::execute(), DateFormats::execute(), UpdateLexerList::execute(), Digit2Html::execute(), EmailConfirmation::execute(), GenerateNormalizerDataAr::execute(), FindDeprecated::execute(), ChangesListSpecialPage::execute(), SpecialPageExecutor::executeSpecialPage(), SpecialJavaScriptTest::exportQUnit(), Language::factory(), SpecialNewpages::feedTitle(), LocalisationUpdate\HttpFetcher::fetchDirectory(), Language::fetchLanguageName(), SpecialMyLanguage::findTitle(), Language::firstChar(), TagHooksTest::functionTagCallback(), LCStoreDB::get(), LCStoreCDB::get(), LCStoreStaticArray::get(), MessageCache::getAllMessageKeys(), MessageCache::getCheckKey(), ClassCollector::getClasses(), LocalisationCache::getCompiledPluralRules(), SpecialCiteThisPage::getContentText(), 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(), HttpStatus::getMessage(), Language::getMessageFor(), MessageCache::getMessageForLang(), Language::getMessageKeysFor(), Language::getMessagesFileName(), Language::getMessagesFor(), MessageCache::getMsgFromNamespace(), LanguageCode::getNonstandardLanguageCodeMapping(), Language::getParentLanguage(), LocalisationCache::getPluralRules(), LocalisationCache::getPluralRuleTypes(), LocalisationUpdate\ReaderFactory::getReader(), SpecialPageAliasTest::getSpecialPageAliases(), LocalisationCacheBulkLoad::getSubitem(), LocalisationCache::getSubitem(), LocalisationCache::getSubitemList(), MessageCache::getValidationHash(), Language::getVariantname(), HttpStatus::header(), LocalisationCache::initLanguage(), EditPage::internalAttemptSave(), LocalisationCache::isExpired(), Language::isSupportedLanguage(), ApiErrorFormatter::isValidApiCode(), Language::isValidBuiltInCode(), Language::isValidCode(), Language::isWellFormedLanguageTag(), CoreParserFunctions::language(), Xml::languageSelector(), MessageCache::load(), MessageCache::loadCachedMessagePageEntry(), MessageCache::loadFromDB(), MessageCache::loadFromDBWithLock(), LocalisationCache::loadItem(), LocalisationCache::loadPluralFile(), LocalisationCache::loadSubitem(), BagOStuff::lock(), SvgHandler::makeParamString(), MessageCacheUpdate::merge(), LocalisationCache::mergeExtensionItem(), Language::newFromCode(), User::newFromConfirmationCode(), ApiUsageException::newWithMessage(), SwiftFileBackend::onError(), LocalisationUpdate::onRecache(), LocalisationUpdate::onRecacheFallback(), FormatJson::parse(), ApiStashEdit::parseAndStash(), SpecialUpload::processUpload(), SpecialUpload::processVerificationError(), MediaWiki\Preferences\DefaultPreferencesFactory::profilePreferences(), LocalisationUpdate\Updater::readMessages(), 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(), MWHttpRequest::setStatus(), MessageCache::setValidationHash(), ChangesList::showCharacterDifference(), SpecialUploadStash::showUpload(), Language::sprintfDate(), LCStoreStaticArray::startWrite(), LCStoreDB::startWrite(), LCStoreCDB::startWrite(), WebResponse::statusHeader(), MWException::statusHeader(), MWExceptionRenderer::statusHeader(), LanguageCodeTest::testBcp47(), LanguageTest::testBuiltInCodeValidation(), LanguageTest::testGetParentLanguage(), LanguageSrTest::testHasVariant(), LanguageSrTest::testHasVariantBogus(), ApiMessageTest::testInvalidCode(), LanguageTest::testIsSupportedLanguage(), ApiErrorFormatterTest::testIsValidApiCode(), LanguageTest::testKnownLanguageTag(), ApiQuerySiteinfoTest::testLanguages(), JavaScriptMinifierTest::testLineBreaker(), LanguageTest::testMalformedLanguageTag(), JavaScriptMinifierTest::testMinifyOutput(), LocalisationCacheTest::testRecacheFallbacksWithHooks(), ApiQuerySiteinfoTest::testSkins(), LanguageTest::testUnknownLanguageTag(), ApiQuerySiteinfoTest::testVariants(), LanguageTest::testWellFormedLanguageTag(), XmlTest::testXmlJsCode(), 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 1679 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 2644 of file hooks.txt.

Referenced by SpecialRecentChanges::__construct(), LogPage::addEntry(), MWDebug::appendDebugInfoToApiResult(), ResourceLoaderModule::buildContent(), SpecialNewFiles::buildForm(), SpecialBookSources::buildForm(), ProtectionForm::buildForm(), ChangesListSpecialPageTest::buildQuery(), DummyLinker::buildRollbackLink(), Linker::buildRollbackLink(), ChangeTags::buildTagFilterSelector(), SpecialPageFactory::capturePath(), SpecialPageLanguage::changePageLanguage(), ResourceLoaderFileModule::compileLessFile(), ConfirmEditHooks::confirmEditMerged(), SimpleCaptcha::confirmEditMerged(), ResourceLoaderUserTokensModule::contextUserTokens(), CategoryTree::createCountString(), ContentHandler::createDifferenceEngine(), RevisionDeleter::createList(), ApiPageSetTest::createPageSetWithRedirect(), Preferences::datetimePreferences(), MWDebug::debugMsg(), Article::delete(), ApiTestCase::doApiRequest(), SimpleCaptcha::doConfirmEdit(), Article::doDelete(), ApiBaseTest::doGetParameterFromSettings(), HttpError::doLog(), ActionTest::dummyActionCallback(), Preferences::editingPreferences(), SimpleCaptcha::editShowCaptcha(), ApiFormatTestBase::encodeData(), SpecialNewFiles::execute(), SpecialAutoblockList::execute(), SpecialBlockList::execute(), RebuildFileCache::execute(), PhpHttpRequest::execute(), SpecialEmailUser::execute(), SpecialPageFactory::executePath(), SpecialPageExecutor::executeSpecialPage(), ResourceLoaderFileModule::expandPackageFiles(), SpecialReplaceText::extractContext(), Preferences::filesPreferences(), SpamBlacklistHooks::filterMergedContent(), DiffFormatter::format(), FeedUtils::formatDiffRow(), GIFHandler::formatMetadata(), PNGHandler::formatMetadata(), ExifBitmapHandler::formatMetadata(), PdfHandler::formatMetadata(), File::formatMetadata(), MediaHandler::formatMetadataHelper(), ChangeTags::formatSummaryRow(), MWCryptHKDF::generate(), MWCryptHKDF::generateHex(), DummyLinker::generateRollback(), Linker::generateRollback(), Preferences::generateSkinOptions(), AuthManagerSpecialPage::getAuthForm(), LoginSignupSpecialPage::getAuthForm(), Block::getBlockErrorParams(), CacheHelper::getCachedNotice(), ChangesListSpecialPage::getChangeTagList(), SpecialEditWatchlist::getClearForm(), ResourceLoaderStartUpModule::getConfigSettings(), ResourceLoaderWikiModule::getContent(), ResourceLoaderWikiModule::getContentObj(), ActionTest::getContext(), OldChangesListTest::getContext(), RCCacheEntryFactoryTest::getContext(), ResourceLoaderLanguageDataModule::getData(), MWDebug::getDebugHTML(), MWDebug::getDebugInfo(), CiteDataModule::getDefinitionSummary(), ResourceLoaderSkinModule::getDefinitionSummary(), ResourceLoaderWikiModule::getDefinitionSummary(), ResourceLoaderImageModule::getDefinitionSummary(), ResourceLoaderFileModule::getDefinitionSummary(), ResourceLoaderForeignApiModule::getDependencies(), ResourceLoaderModule::getFileDependencies(), ResourceLoaderImageModule::getFileHashes(), ResourceLoaderFileModule::getFileHashes(), MWDebug::getFilesIncluded(), ResourceLoaderModule::getFlip(), ResourceLoaderFileModule::getFlip(), HTMLFancyCaptchaFieldTest::getForm(), FormSpecialPage::getForm(), SpecialPreferences::getFormObject(), Preferences::getFormObject(), ResourceLoaderImageModule::getGlobalVariants(), ResourceLoaderImage::getImageData(), ResourceLoaderImageModuleTest::getImageMock(), ResourceLoaderImageModule::getImages(), DummyLinker::getInvalidTitleDescription(), Linker::getInvalidTitleDescription(), Vector\ResourceLoaderLessModule::getLessVars(), ResourceLoaderLessVarFileModule::getLessVars(), UserGroupMembership::getLink(), ApiContinuationManagerTest::getManager(), ResourceLoaderLessVarFileModule::getMessageBlob(), ResourceLoaderModule::getMessageBlob(), ApiFormatBaseTest::getMockFormatter(), ResourceLoaderModule::getModuleContent(), ResourceLoaderStartUpModule::getModuleRegistrations(), SpecialEditWatchlist::getNormalForm(), OldChangesListTest::getOldChangesList(), User::getOptionKinds(), ResourceLoaderUserModule::getPages(), ResourceLoaderUserStylesModule::getPages(), ResourceLoaderSiteModule::getPages(), ResourceLoaderSiteStylesModule::getPages(), ResourceLoaderImage::getPath(), Preferences::getPreferences(), SpecialEditWatchlist::getRawForm(), ChangesListSpecialPage::getRcFiltersConfigVars(), ManualLogEntry::getRecentChange(), CiteDataModule::getScript(), ResourceLoaderSyntaxHighlightVisualEditorModule::getScript(), ResourceLoaderUserOptionsModule::getScript(), ResourceLoaderLanguageDataModule::getScript(), ResourceLoaderWikiModule::getScript(), ResourceLoaderStartUpModule::getScript(), ResourceLoaderFileModule::getScriptFiles(), ResourceLoaderModule::getScriptURLsForDebug(), ContentHandler::getSlotDiffRenderer(), ContentHandler::getSlotDiffRendererInternal(), ResourceLoaderImageModule::getStyleDeclarations(), ResourceLoaderFileModule::getStyleFiles(), ResourceLoaderSkinModule::getStyles(), ResourceLoaderWikiModule::getStyles(), ResourceLoaderImageModule::getStyles(), ResourceLoaderFileModule::getStyles(), ResourceLoaderModule::getStyleURLsForDebug(), ResourceLoaderFileModule::getStyleURLsForDebug(), TestRecentChangesHelper::getTestContext(), ParserOutput::getText(), ResourceLoaderWikiModule::getTitleInfo(), SpecialReplaceText::getTitlesForEditingWithContext(), SpecialUpload::getUploadForm(), ResourceLoaderImage::getUrl(), ResourceLoaderModule::getVersionHash(), RequestContext::importScopedSession(), WikitextContent::isCountable(), ResourceLoaderUserOptionsModule::isKnownEmpty(), HTMLFileCache::loadFromFileCache(), TestLogger::log(), ChangesListSpecialPage::makeLegend(), PageDataRequestHandlerTest::makeOutputPage(), ContentHandler::makeParserOptions(), WikiPage::makeParserOptions(), Article::makeParserOptions(), ViewActionTest::makeViewActionClassFactory(), SpecialPrefixindex::namespacePrefixForm(), ParserOptions::newCanonical(), SpecialPageExecutor::newContext(), EnhancedChangesListTest::newEnhancedChangesList(), RequestContext::newExtraneousContext(), ResourceFileCache::newFromContext(), ParserOptions::newFromContext(), Article::newFromTitle(), Article::newFromWikiPage(), ApiTestContext::newTestContext(), onApiFormatHighlight(), GadgetHooks::onEditFilterMergedContent(), SpecialAllPages::outputHTMLForm(), SpecialReplaceText::pageListForm(), ResourceLoaderWikiModule::preloadTitleInfo(), SpecialTags::processCreateTagForm(), SpecialBlock::processForm(), SpecialTags::processTagForm(), SpecialUnblock::processUnblock(), Preferences::profilePreferences(), ResourceLoaderFileModuleTest::providerGetScriptPackageFiles(), Preferences::rcPreferences(), ResourceLoaderFileModule::readStyleFile(), ResourceLoaderFileModule::readStyleFiles(), SpecialWatchlist::registerFilters(), Preferences::renderingPreferences(), UserNotLoggedIn::report(), Wikimedia\Rdbms\LoadBalancer::reportConnectionError(), User::resetOptions(), AssembleUploadChunksJob::run(), PublishStashedFileJob::run(), ResourceLoaderModule::saveFileDependencies(), Preferences::searchPreferences(), ContentSecurityPolicy::sendHeaders(), ResourceLoaderImage::sendResponseHeaders(), ProxySpecialPage::setContext(), SpecialPage::setContext(), Article::setContext(), SpecialPageExecutor::setEditTokenFromUser(), ResourceLoaderModule::setFileDependencies(), Article::setOldSubtitle(), LoginSignupSpecialPage::setSessionUserForCurrentRequest(), ContentSecurityPolicyTest::setUp(), ContribsPagerTest::setUp(), SpecialMIMESearchTest::setUp(), ActionTest::setUp(), UploadFromUrlTestSuite::setUp(), AbstractChangesListSpecialPageTestCase::setUp(), SimpleCaptcha::shouldCheck(), ResourceLoaderTestModule::shouldEmbedModule(), ResourceLoaderWikiModule::shouldEmbedModule(), Article::showRedirectedFromHeader(), SpecialPreferences::showResetForm(), SpecialUploadStash::showUploads(), Preferences::skinPreferences(), SpecialEmailUser::submit(), ChangeTags::tagDescription(), ChangeTags::tagLongDescriptionMessage(), 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(), ResourceLoaderTest::testGetCombinedVersion(), ResourceLoaderWikiModuleTest::testGetContent(), ResourceLoaderWikiModuleTest::testGetContentForRedirects(), SkinTemplateTest::testgetDefaultModules(), ChangesListSpecialPageTest::testGetFilterConflicts(), ResourceLoaderModuleTest::testGetHeaders(), ResourceLoaderImageTest::testGetImageData(), ResourceLoaderStartUpModuleTest::testGetModuleRegistrations(), ArticleViewTest::testGetOldId(), ApiBaseTest::testGetParameter(), ResourceLoaderImageTest::testGetPath(), ResourceLoaderWikiModuleTest::testGetPreloadedBadTitle(), ResourceLoaderWikiModuleTest::testGetPreloadedTitleInfo(), ResourceLoaderWikiModuleTest::testGetPreloadedTitleInfoEmpty(), ResourceLoaderFileModuleTest::testGetScriptPackageFiles(), ResourceLoaderImageModuleTest::testGetStyleDeclarations(), ResourceLoaderWikiModuleTest::testGetTitleInfo(), ResourceLoaderModuleTest::testGetVersionHash(), ResourceLoaderFileModuleTest::testGetVersionHash(), ResourceLoaderModuleTest::testGetVersionHash_parentDefinition(), ResourceLoaderStartUpModuleTest::testGetVersionHash_varyConfig(), ResourceLoaderStartUpModuleTest::testGetVersionHash_varyDeps(), ApiPageSetTest::testHandleNormalization(), ApiFormatBaseTest::testHtmlHeader(), DerivativeResourceLoaderContextTest::testImmutableAccessors(), RequestContextTest::testImportScopedSession(), ResourceLoaderWikiModuleTest::testIsKnownEmpty(), ResourceLoaderFileModuleTest::testLessFileCompilation(), CommandTest::testLogStderr(), ResourceLoaderTest::testMakeModuleResponseConcat(), ResourceLoaderTest::testMakeModuleResponseEmpty(), ResourceLoaderTest::testMakeModuleResponseError(), ResourceLoaderTest::testMakeModuleResponseErrorCSS(), ResourceLoaderTest::testMakeModuleResponseExtraHeaders(), ResourceLoaderTest::testMakeModuleResponseExtraHeadersMulti(), ResourceLoaderTest::testMakeModuleResponseStartupError(), ParserOptionsTest::testNewCanonical(), ActionTest::testNull_defaultsToView(), SpecialBlockTest::testProcessForm(), SpecialBlockTest::testProcessFormExisting(), SpecialBlockTest::testProcessFormRestrictions(), SpecialBlockTest::testProcessFormRestrictionsChange(), SpecialSearchTest::testProfileAndNamespaceLoading(), ResourceLoaderStartUpModuleTest::testRegistrationsMinified(), ResourceLoaderStartUpModuleTest::testRegistrationsUnminified(), ResourceLoaderTest::testRespondEmpty(), ResourceLoaderTest::testRespondInternalFailures(), ResourceLoaderTest::testRespondSimple(), ApiPageSetTest::testSpecialRedirects(), HTMLSubmittedValueFieldTest::testSubmit(), HTMLReCaptchaNoCaptchaFieldTest::testSubmit(), SpecialPreferencesTest::testT43337(), MediaWikiTest::testTryNormaliseRedirect(), ArticleViewTest::testUnhiddenViewOfDeletedRevision(), ResourceLoaderModuleTest::testValidateScriptFile(), RequestContextTest::testWikiPageTitle(), ChangeTags::truncateTagDescription(), ResourceFileCache::useFileCache(), HTMLFileCache::useFileCache(), Preferences::watchlistPreferences(), 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 2170 of file hooks.txt.

Referenced by ORAResult::__construct(), DatabaseTestHelper::__construct(), SVGReader::__construct(), Wikimedia\Rdbms\LBFactory::__construct(), MSCompoundFileReader::__construct(), Wikimedia\Rdbms\LoadBalancer::__construct(), FSFileBackendList::__construct(), RedisConnectionPool::__destruct(), MemcachedClient::_flush_read_buffer(), RedisBagOStuff::add(), UploadFromChunks::addChunk(), MediaWiki\Tests\Maintenance\TextPassDumperDatabaseTest::addDBData(), MediaWiki\Tests\Maintenance\BackupDumperPageTest::addDBData(), MediaWiki\Tests\Maintenance\BackupDumperLoggerTest::addDBData(), ApiQueryContinue2Test::addDBDataOnce(), ApiQueryBasicTest::addDBDataOnce(), ApiQueryContinueTest::addDBDataOnce(), MediaWiki\Tests\Maintenance\FetchTextTest::addDBDataOnce(), ApiTestCase::apiExceptionHasCode(), SVGMetadataExtractorTest::assertMetadata(), DeprecationHelperTest::assertPropertySame(), ApiQueryTestBase::assertResult(), GadgetHooks::beforePageDisplay(), 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(), Wikimedia\Rdbms\DatabaseMssql::delete(), Article::delete(), SqlBagOStuff::deleteAll(), Wikimedia\Rdbms\DatabaseMssql::deleteJoin(), RedisBagOStuff::deleteMulti(), SqlBagOStuff::deleteMulti(), 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(), RedisBagOStuff::doGet(), JobQueueDB::doGetAbandonedCount(), JobQueueRedis::doGetAbandonedCount(), JobQueueDB::doGetAcquiredCount(), JobQueueRedis::doGetAcquiredCount(), 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(), MediaWiki\Logger\Monolog\LineFormatter::exceptionAsArray(), 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(), GuzzleHttpRequest::execute(), LocalisationUpdate\Updater::execute(), ZipDirectoryReader::execute(), ApiMain::executeActionWithErrorHandling(), JobRunner::executeJob(), Wikimedia\Rdbms\LBFactory::executePostTransactionCallbacks(), MediaWiki\Extensions\ParserFunctions\LuaLibrary::expr(), MediaWiki\Extensions\ParserFunctions\ParserFunctions::expr(), ApiQueryRevisionsBase::extractAllSlotInfo(), ApiQueryRevisionsBase::extractRevisionInfo(), ApiQueryRevisionsBase::extractSlotInfo(), DjVuHandler::extractTreesFromMetadata(), Wikimedia\Rdbms\Database::factory(), ApiFeedContributions::feedItemDesc(), EtcdConfig::fetchAllFromEtcdServer(), SqlBagOStuff::fetchBlobMulti(), 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(), DeletedContribsPager::formatRow(), MediaWikiTitleCodec::formatTitle(), RedisLockManager::freeLocksOnServer(), LCStoreCDB::get(), JobQueueRedis::getAllAbandonedJobs(), JobQueueRedis::getAllAcquiredJobs(), JobQueueRedis::getAllDelayedJobs(), MediaWiki\Interwiki\ClassicInterwikiLookup::getAllPrefixesCached(), JobQueueRedis::getAllQueuedJobs(), LocalisationCache::getCompiledPluralRules(), RedisConnectionPool::getConnection(), RedisBagOStuff::getConnection(), Revision::getContent(), JobQueueFederated::getCrossPartitionSum(), ReverseChronologicalPager::getDateCond(), JobQueueDB::getDB(), UploadForm::getDescriptionSection(), Status::getErrorMessageArray(), SpecialEditWatchlist::getExpandedTargets(), GadgetResourceLoaderModule::getGadget(), MWExceptionRenderer::getHTML(), BmpHandler::getImageSize(), MediaWiki\Interwiki\ClassicInterwikiLookup::getInterwikiCacheEntry(), JobQueueRedis::getJobFromUidInternal(), JobQueueDB::getJobIterator(), Wikimedia\Rdbms\LoadBalancer::getLaggedReplicaMode(), RequestContext::getLanguage(), Vector\ResourceLoaderLessModule::getLessVars(), 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(), MediaWiki\Auth\AbstractPasswordPrimaryAuthenticationProvider::getPassword(), MWExceptionHandler::getPublicLogMessage(), Wikimedia\Rdbms\Database::getQueryExceptionAndLog(), MediaWiki\Logger\Monolog\KafkaHandler::getRandomPartition(), MWExceptionHandler::getRedactedTrace(), MWExceptionHandler::getRedactedTraceAsString(), JobQueueDB::getReplicaDB(), SearchEngine::getSearchIndexFields(), JobQueueRedis::getServerQueuesWithJobs(), NewFilesPager::getStartBody(), MWExceptionHandler::getStructuredExceptionData(), GadgetRepo::getStructuredList(), MWExceptionRenderer::getText(), TextPassDumper::getText(), LocalFile::getThumbnails(), SpecialRandomInCategory::getTimestampOffset(), ContentHandler::getUndoContent(), ParserFuzzTest::guessVarSize(), ApiMain::handleApiBeforeMainException(), MWExceptionHandler::handleError(), RedisConnectionPool::handleError(), MWExceptionHandler::handleException(), RedisBagOStuff::handleException(), ApiMain::handleException(), VersionChecker::handleExtensionDependency(), ApiUpload::handleStashException(), MWExceptionHandler::handleUncaughtException(), MediaWiki\Extensions\ParserFunctions\ParserFunctions::ifexpr(), EditPage::importFormData(), Installer::includeExtensions(), RedisBagOStuff::incr(), SqlBagOStuff::incr(), Wikimedia\Rdbms\DatabasePostgres::insert(), Wikimedia\Rdbms\DatabaseMssql::insert(), Wikimedia\Rdbms\DatabaseSqlite::insert(), SqlBagOStuff::insertMulti(), DatabaseOracle::insertOneRow(), DBLockManager::isServerUp(), SiteStats::jobs(), MWExceptionHandler::jsonSerializeException(), DatabaseOracle::lastErrno(), DatabaseOracle::lastError(), Wikimedia\Rdbms\DatabaseSqlite::lastError(), HTMLRestrictionsField::loadDataFromRequest(), MimeAnalyzer::loadFiles(), ExtensionRegistry::loadFromQueue(), Revision\RevisionStore::loadSlotContent(), ProfilerOutputDb::log(), MWExceptionHandler::logError(), JobQueueFederated::logException(), MWExceptionHandler::logException(), FileOp::logFailure(), ApiMain::logRequest(), FormatMetadata::makeFormattedData(), Wikimedia\Rdbms\LoadBalancer::masterRunningReadOnly(), LocalFile::maybeUpgradeRow(), MediaWiki\Session\SessionProvider::mergeMetadata(), JSMinPlus::min(), MWException::msg(), MWExceptionRenderer::msg(), Wikimedia\Rdbms\DatabaseMssql::nativeInsertSelect(), DatabaseInstaller::needsUpgrade(), FSFileBackendList::next(), Wikimedia\Rdbms\Database::nonNativeInsertSelect(), MediaWiki\Logger\Monolog\LogstashFormatter::normalizeException(), MediaWiki\Logger\Monolog\LineFormatter::normalizeException(), MediaWiki\Logger\Monolog\LineFormatter::normalizeExceptionArray(), MWTimestamp::offsetForUser(), SpecialChangeContentModel::onSubmit(), Wikimedia\Rdbms\Database::onTransactionPreCommitOrIdle(), MysqlInstaller::openConnection(), SqliteInstaller::openConnection(), MssqlInstaller::openConnection(), PostgresInstaller::openConnectionWithParams(), Wikimedia\Rdbms\DatabaseSqlite::openFile(), MWExceptionRenderer::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(), LocalisationUpdate\Updater::readMessages(), Wikimedia\Rdbms\LoadBalancer::reallyOpenConnection(), QueryPage::recache(), JobQueueDB::recycleAndDeleteStaleJobs(), PoolCounterRedis::release(), PoolCounterRedis::releaseAll(), PostgreSqlLockManager::releaseAllLocks(), MySqlLockManager::releaseAllLocks(), Wikimedia\Rdbms\DatabaseSqlite::replace(), Wikimedia\Rdbms\Database::replace(), Wikimedia\Rdbms\Database::replaceLostConnection(), MWExceptionHandler::report(), MWExceptionRenderer::reportHTML(), MWLBFactory::reportIfPrefixSet(), MWLBFactory::reportMismatchedDBs(), MWLBFactory::reportMismatchedPrefixes(), MWExceptionRenderer::reportOutageHTML(), MediaWiki\Block\BlockRestrictionStore::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(), 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(), MWHttpRequestTestCase::setUp(), JobQueueTest::setUp(), SqliteInstaller::setupDatabase(), PostgresInstaller::setupPLpgSQL(), PostgresInstaller::setupSchema(), MysqlInstaller::setupUser(), PostgresInstaller::setupUser(), SpecialGadgets::showExportForm(), 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(), ActionTest::testCanExecuteNoRight(), ActionTest::testCanExecuteRequiresUnblock(), 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(), 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(), JobQueueDB::throwDBException(), JobQueueRedis::throwRedisException(), BitmapHandler::transformImageMagickExt(), MediaWiki::triggerJobs(), JobQueueFederated::tryJobInsertions(), UploadFromChunks::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(), TitleBlacklist::validate(), XmlTypeCheck::validateFromInput(), ResourceLoaderModule::validateScriptFile(), SqlBagOStuff::waitForReplication(), 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

◆ $extraData

this hook is for auditing only or null if authentication failed before getting that far or null if we can t even determine that When $user is not it can be in the form of<username><more info> e g for bot passwords $extraData

Definition at line 780 of file hooks.txt.

Referenced by BotPassword::loginHook().

◆ $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 1476 of file hooks.txt.

◆ $formDescriptor

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

Definition at line 2072 of file hooks.txt.

Referenced by AuthManagerSpecialPage::addTabIndex(), MediaWiki\Preferences\DefaultPreferencesFactory::applyFilters(), SpecialActiveUsers::buildForm(), SpecialNewFiles::buildForm(), SpecialBookSources::buildForm(), SpecialExport::execute(), SpecialAllMessages::execute(), CategoryTreePage::executeInputForm(), AuthManagerSpecialPage::fieldInfoToFormDescriptor(), SpecialNewpages::form(), AuthManagerSpecialPage::getAuthForm(), LoginSignupSpecialPage::getAuthForm(), AuthManagerSpecialPage::getAuthFormDescriptor(), LogEventsList::getExtraInputsDesc(), ImageListPager::getForm(), MediaWiki\Preferences\DefaultPreferencesFactory::getForm(), WithoutInterwikiPage::getPageHeader(), MIMEsearchPage::getPageHeader(), UsersPager::getPageHeader(), CategoryPager::getStartForm(), SpecialPrefixindex::namespacePrefixForm(), SpecialChangeCredentials::onAuthChangeFormFields(), OATHAuthHooks::onAuthChangeFormFields(), MathCaptcha::onAuthChangeFormFields(), QuestyCaptcha::onAuthChangeFormFields(), ConfirmEditHooks::onAuthChangeFormFields(), ReCaptcha::onAuthChangeFormFields(), FancyCaptcha::onAuthChangeFormFields(), LoginSignupSpecialPage::onAuthChangeFormFields(), SimpleCaptcha::onAuthChangeFormFields(), SpecialAllPages::outputHTMLForm(), LoginSignupSpecialPage::postProcessFormDescriptor(), SpecialNuke::promptForm(), MediaWiki\Preferences\DefaultPreferencesFactory::saveFormData(), SpecialInterwiki::showForm(), SpecialProtectedpages::showOptions(), LogEventsList::showOptions(), SpecialProtectedtitles::showOptions(), AuthManagerSpecialPage::sortFormDescriptorFields(), and MediaWiki\Preferences\DefaultPreferencesFactory::submitForm().

◆ $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 When $user is not it can be in the form of<username><more info> e g for bot passwords intended to be added to log contexts Fields it might only if the login was with a bot password 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 780 of file hooks.txt.

Referenced by EditPage::__construct(), Revision\RevisionStore::checkContent(), CleanupSpam::cleanupArticle(), MediaWiki\Storage\PageUpdater::computeEffectiveTags(), MediaWiki\Logger\MonologSpi::createLogger(), MediaWiki\Tests\Storage\DerivedPageDataUpdaterTest::createMockContent(), WikiPageDbTestBase::createMockContent(), 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(), GadgetDefinitionContent::getAssocArray(), ResourceLoaderWikiModule::getContent(), WikiRevision::getContent(), EditPage::getCurrentContent(), FileContentHandler::getDataForSearchIndex(), WikiPage::getDeletionUpdates(), ContentHandler::getForModelID(), MediaHandlerFactory::getHandler(), MediaWiki\Logger\MonologSpi::getHandler(), ImagePage::getLanguageForRendering(), SpecialChangeContentModel::getOptionsForTitle(), EditPage::getOriginalContent(), EditPage::getPreloadedContent(), MWFileProps::getPropsFromPath(), Revision\SlotRoleRegistry::getRoleHandler(), SearchEngine::getSearchIndexFields(), MediaWiki\Storage\DerivedPageDataUpdater::getSecondaryDataUpdates(), WikiPage::getUndoContent(), ThumbnailRenderJob::hitThumbUrl(), EditPage::importFormData(), Revision\MainSlotRoleHandler::isAllowedModel(), Revision\RevisionStore::loadSlotContent(), MediaWiki\Storage\PageUpdater::makeAutoSummary(), ContentHandler::makeContent(), EditPage::mergeChangesIntoContent(), LogFormatter::newFromEntry(), ImagePage::openShowImage(), SpecialUploadStash::parseKey(), PopulateContentModel::populateRevisionOrArchive(), WikiImporter::processRevision(), ResourceLoaderImage::rasterize(), MediaWikiTestCase::setTemporaryHook(), MediaWiki\Session\SessionManager::setupPHPSessionHandler(), MediaWiki\EditPage\TextConflictHelper::showEditFormTextAfterFooters(), MovePageForm::showForm(), MediaWiki\Logger\Monolog\KafkaHandlerTest::testBatchHandlesNullFormatterResult(), GuzzleHttpRequestTest::testConnectException(), MediaWiki\Tests\Revision\FallbackSlotRoleHandlerTest::testConstruction(), MediaWiki\Tests\Revision\SlotRoleHandlerTest::testConstruction(), MediaWiki\Tests\Revision\MainSlotRoleHandlerTest::testConstruction(), ContentHandlerTest::testDataIndexFields(), MediaWiki\Tests\Revision\SlotRoleRegistryTest::testDefineRole(), MediaWiki\Tests\Revision\SlotRoleRegistryTest::testDefineRoleWithContentModel(), MediaWiki\Session\PHPSessionHandlerTest::testDisabled(), MediaWiki\Session\PHPSessionHandlerTest::testEnableFlags(), MediaWiki\Tests\Revision\MainSlotRoleHandlerTest::testFetDefaultModel(), 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(), MediaWiki\Tests\Revision\SlotRoleRegistryTest::testGetRoleHandlerFallbackHandler(), ContentHandlerTest::testGetSlotDiffRenderer_hook(), PageDataRequestHandlerTest::testHandleRequest(), MediaWiki\Logger\Monolog\KafkaHandlerTest::testHandlesNullFormatterResult(), PageDataRequestHandlerTest::testHttpContentNegotiation(), BitmapScalingTest::testImageArea(), MediaWiki\Tests\Revision\FallbackSlotRoleHandlerTest::testIsAllowedModel(), MediaWiki\Tests\Revision\SlotRoleHandlerTest::testIsAllowedModel(), MediaWiki\Tests\Revision\MainSlotRoleHandlerTest::testIsAllowedModel(), MediaWiki\Tests\Revision\FallbackSlotRoleHandlerTest::testIsAllowedOn(), SvgHandlerTest::testIsEnabled(), JobTest::testJobFactory(), JsonContentHandlerTest::testMakeEmptyContent(), ContentHandlerSanityTest::testMakeEmptyContent(), SvgHandlerTest::testMakeParamString(), BitmapScalingTest::testNormaliseParams(), SvgHandlerTest::testNormaliseParamsInternal(), GuzzleHttpRequestTest::testNotFound(), BitmapMetadataHandlerTest::testPNGNative(), BitmapMetadataHandlerTest::testPNGXMP(), MediaWiki\Session\SessionBackendTest::testResetIdOfGlobalSession(), MediaWiki\Logger\Monolog\KafkaHandlerTest::testSendException(), MediaWiki\Session\PHPSessionHandlerTest::testSessionHandling(), GuzzleHttpRequestTest::testSuccess(), GuzzleHttpRequestTest::testSuccessConstructorCallback(), GuzzleHttpRequestTest::testSuccessSetCallback(), GuzzleHttpRequestTest::testSuccessSink(), MediaWiki\Tests\Revision\SlotRoleHandlerTest::testSupportsArticleCount(), MediaWiki\Tests\Revision\FallbackSlotRoleHandlerTest::testSupportsArticleCount(), MediaWiki\Tests\Revision\MainSlotRoleHandlerTest::testSupportsArticleCount(), ContentHandlerTest::testSupportsCategories(), TextContentHandlerTest::testSupportsDirectEditing(), ContentHandlerTest::testSupportsDirectEditing(), MediaWiki\Session\SessionBackendTest::testTakeOverGlobalSession(), BitmapMetadataHandlerTest::testTiffByteOrder(), GuzzleHttpRequestTest::testTimeout(), BitmapScalingTest::testTooBigImage(), BitmapScalingTest::testTooBigMustRenderImage(), MediaWiki\Logger\Monolog\KafkaHandlerTest::testTopicNaming(), MediaWiki\Session\SessionBackendTest::testUnpersistOfGlobalSession(), ArticleViewTest::testViewNonText(), MediaWiki\Session\PHPSessionHandlerTest::testWrongInstance(), TraditionalImageGallery::toHTML(), 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 1993 of file hooks.txt.

Referenced by ImageGalleryBase::add(), CachedAction::addCachedHTML(), MathCaptcha::addCaptchaAPI(), 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(), WebInstallerInstall::endStage(), TimelessTemplate::execute(), BenchmarkTidy::execute(), ApiCategoryTree::execute(), ApiHelp::execute(), MonoBookTemplate::execute(), SpecialTrackingCategories::execute(), SpecialPageExecutor::executeSpecialPage(), ApiFeedContributions::feedItemDesc(), MathCaptcha::fetchMath(), TextContent::fillParserOutput(), ApiHelp::fixHelpLinks(), OldChangesList::formatChangeLine(), FeedUtils::formatDiffRow(), HTMLMultiSelectField::formatOptions(), HTMLRadioField::formatOptions(), SpecialGadgetUsage::formatResult(), OOUIHTMLForm::formatSection(), HTMLForm::formatSection(), MediaWiki\Widget\Search\FullSearchResultWidget::generateFileHtml(), CategoryViewer::generateLink(), TimelessTemplate::getAfterContent(), BaseTemplate::getAfterPortlet(), OOUIHTMLForm::getBody(), PreferencesFormOOUI::getButtons(), MonoBookTemplate::getCactions(), TimelessTemplate::getCategories(), TimelessTemplate::getCatList(), TimelessTemplate::getContentSub(), SpecialVersion::getCreditsForExtension(), MWDebug::getDebugHTML(), HTMLFormField::getDiv(), Title::getEditNotices(), BaseTemplate::getFooter(), TimelessTemplate::getHeaderHack(), ApiHelp::getHelp(), WebInstaller::getHelpBox(), HTMLForm::getHiddenFields(), JavaScriptContent::getHtml(), CssContent::getHtml(), ApiCategoryTree::getHTML(), MWExceptionRenderer::getHTML(), QuickTemplate::getHTML(), HTMLForm::getHTML(), SpecialPageExecutor::getHTMLFromSpecialPage(), MonoBookTemplate::getIfExists(), HTMLFormField::getInline(), HTMLSizeFilterField::getInputHTML(), HTMLFancyCaptchaField::getInputHTML(), HTMLRadioField::getInputHTML(), HTMLMultiSelectField::getInputHTML(), HTMLCheckMatrix::getInputHTML(), HTMLFormFieldCloner::getInputHTML(), HTMLFormFieldCloner::getInputHTMLForKey(), HTMLFormFieldCloner::getInputOOUI(), HTMLFormFieldCloner::getInputOOUIForKey(), TimelessTemplate::getInterlanguageLinks(), HTMLFormField::getLabelHtml(), MonoBookTemplate::getLanguageBox(), TimelessTemplate::getLogo(), TimelessTemplate::getMainNavigation(), SkinTemplateTest::getMockOutputPage(), LoginSignupSpecialPage::getPageHtml(), MessageContent::getParserOutput(), TimelessTemplate::getPortlet(), MonoBookTemplate::getPortlet(), HTMLFormField::getRaw(), Article::getRedirectHeaderHtml(), MonoBookTemplate::getRenderedSidebar(), TimelessTemplate::getSearch(), MonoBookTemplate::getSearchBox(), TimelessTemplate::getSidebarChunk(), MonoBookTemplate::getSimpleFooter(), TimelessTemplate::getSiteNotices(), HTMLCheckMatrix::getTableRow(), HTMLFormField::getTableRow(), CategoryTree::getTag(), MonoBookTemplate::getToolboxBox(), TimelessTemplate::getUserLinks(), ForeignAPIRepo::httpGetCached(), ImageGalleryBase::insert(), Xml::isWellFormedXmlFragment(), DummyLinker::link(), Linker::link(), DummyLinker::linkKnown(), Linker::linkKnown(), Skin::makeFooterIcon(), DummyLinker::makeHeadline(), BaseTemplate::makeLink(), VectorTemplate::makeLink(), BaseTemplate::makeListItem(), DummyLinker::makeMediaLinkFile(), Linker::makeMediaLinkFile(), DummyLinker::makeMediaLinkObj(), Linker::makeMediaLinkObj(), LogFormatter::makePageLink(), SkinTemplate::makePersonalToolsList(), DummyLinker::makeSelfLinkObj(), Linker::makeSelfLinkObj(), ConfirmEditHooks::onAlternateEditPreview(), CategoryTreeHooks::onSkinBuildSidebar(), CategoryTreeHooks::onSpecialTrackingCategoriesGenerateCatLink(), MediaWiki\Widget\Search\SearchFormWidget::optionsHtml(), SpecialGadgetUsage::outputResults(), QueryPage::outputResults(), SpecialGadgetUsage::outputTableStart(), Installer::parse(), CategoryTreeHooks::parserFunction(), SpecialJavaScriptTest::plainQUnit(), OldChangesList::recentChangesLine(), LogFormatterTestCase::removeSomeHtml(), MediaWiki\Widget\Search\DidYouMeanWidget::render(), MediaWiki\Widget\Search\FullSearchResultWidget::render(), MWExceptionRenderer::reportOutageHTML(), Linker::revDeleteLink(), Linker::revDeleteLinkDisabled(), MediaWiki\Linker\LinkRenderer::runLegacyBeginHook(), MediaWiki\Widget\Search\SearchFormWidget::shortDialogHtml(), WebInstaller::showHelpBox(), FileDuplicateSearchPage::showList(), WebInstaller::showMessage(), EnhancedChangesListTest::testBeginRecentChangesList_html(), SpecialPageTest::testBuildPrevNextNavigation(), EnhancedChangesListTest::testCategorizationLineFormatting(), EnhancedChangesListTest::testCategorizationLineFormattingWithRevision(), SpecialEditWatchlistTest::testClearPage_hasClearButtonForm(), SpecialEditWatchlistTest::testEditRawPage_hasTitlesBox(), EnhancedChangesListTest::testEndRecentChangesList(), SpecialBooksourcesTest::testExecute(), SkinTemplateTest::testgetDefaultModules(), HTMLFancyCaptchaFieldTest::testGetHTML(), 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(), 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 When $user is not it can be in the form of<username><more info> e g for bot passwords intended to be added to log contexts Fields it might only if the login was with a bot password 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 780 of file hooks.txt.

Referenced by ApiQueryImageInfo::checkParameterNormalise(), MockBitmapHandler::doClientImage(), MockImageHandler::doFakeTransform(), MockBitmapHandler::doTransform(), MockSvgHandler::doTransform(), MockDjVuHandler::doTransform(), BitmapHandler_ClientOnly::doTransform(), TransformationalImageHandler::doTransform(), PdfHandler::doTransform(), DjVuHandler::doTransform(), SvgHandler::doTransform(), InitSiteStats::execute(), ImportImages::execute(), DumpUploads::fetchUsed(), RepoGroup::findFile(), RepoGroup::findFiles(), GIFHandler::formatMetadata(), PNGHandler::formatMetadata(), ExifBitmapHandler::formatMetadata(), PdfHandler::formatMetadata(), TransformationalImageHandler::getClientScalingThumbnailImage(), GIFHandler::getCommonMetaArray(), PNGHandler::getCommonMetaArray(), DjVuHandler::getDjVuImage(), ResourceLoaderImageModule::getFileHashes(), GIFHandler::getImageArea(), ImageHandler::getImageArea(), ResourceLoaderImageModuleTest::getImageMock(), ResourceLoaderImageModule::getImages(), ExifBitmapHandler::getImageSize(), PdfHandler::getImageSize(), DjVuHandler::getImageSize(), PNGHandler::getLongDesc(), GIFHandler::getLongDesc(), PdfHandler::getMetaArray(), PdfHandler::getMetadata(), DjVuHandler::getMetadata(), DjVuHandler::getMetaTree(), SearchNearMatcher::getNearMatchInternal(), MediaHandler::getPageDimensions(), PdfHandler::getPdfImage(), ImageHandler::getScriptedTransform(), ResourceLoaderImageModule::getStyleDeclarations(), ResourceLoaderImageModule::getStyles(), MediaHandler::getTransform(), PNGHandler::isAnimatedImage(), GIFHandler::isAnimatedImage(), WebPHandler::isAnimatedImage(), SpecialNuke::listForm(), ApiQueryImageInfo::mergeThumbParams(), JpegHandler::normaliseParams(), BitmapHandler_ClientOnly::normaliseParams(), TransformationalImageHandler::normaliseParams(), ImageHandler::normaliseParams(), BitmapHandler::normaliseParams(), SvgHandler::normaliseParams(), SvgHandler::normaliseParamsInternal(), ConfirmEditHooks::onTitleReadWhitelist(), ImageMap::render(), ApiQueryDuplicateFiles::run(), 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 3061 of file hooks.txt.

Referenced by LinksUpdate::__construct(), ImageGalleryBase::add(), Skin::addToSidebarPlain(), RCCacheEntryFactoryTest::assertQueryLink(), SkinTemplate::buildContentNavigationUrls(), ProtectionForm::buildForm(), SpecialEditWatchlist::buildRemoveLine(), Article::confirmDelete(), DifferenceEngine::deletedIdMarker(), SpecialReplaceText::doSpecialReplaceText(), MovePageForm::doSubmit(), SpecialRenameuser::execute(), VectorTemplate::execute(), SpecialApiHelp::execute(), DumpLinks::execute(), SpecialNewpages::filterLinks(), ShiConverter::findVariantLink(), SrConverter::findVariantLink(), IuConverter::findVariantLink(), KuConverter::findVariantLink(), CrhConverter::findVariantLink(), StubUserLang::findVariantLink(), KkConverter::findVariantLink(), Language::findVariantLink(), 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(), ApiHelp::getHelpInternal(), EnhancedChangesList::getLineData(), RevDelArchivedFileItem::getLink(), RevDelFileItem::getLink(), RenameuserLogFormatter::getMessageParameters(), 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(), BaseTemplate::makeListItem(), LogFormatter::makePageLink(), ChangesList::maybeWatchedLink(), RenameuserLogFormatter::myPageLink(), ImportStreamSource::newFromInterwiki(), ComposerPackageModifier::newMediaWikiLink(), SpecialPage::numLink(), Language::numLink(), ImagePage::openShowImage(), SpecialRecentChanges::optionsPanel(), SpecialSpecialpages::outputPageList(), SkinTemplate::prepareQuickTemplate(), SpecialBlock::preText(), MediaWiki\Widget\Search\InterwikiSearchResultWidget::render(), MediaWiki\Widget\Search\SimpleSearchResultWidget::render(), MediaWiki\Widget\Search\FullSearchResultWidget::render(), ImageMap::render(), LinkHolderArray::replaceInternal(), LinkHolderArray::replaceInterwiki(), ChangesList::revDateLink(), Linker::revDeleteLink(), DifferenceEngine::revisionDeleteLink(), Linker::revUserLink(), Linker::revUserTools(), ComposerPackageModifier::setLinkAsProvides(), Article::showDeletedRevisionHeader(), DifferenceEngine::showDiffPage(), FileDeleteForm::showForm(), SpecialRevisionDelete::showForm(), SpecialWhatLinksHere::showIndirectLinks(), SpecialAutoblockList::showList(), SpecialBlockList::showList(), Article::showPatrolFooter(), SpecialPrefixindex::showPrefixChunk(), SpecialUndelete::showRevision(), MovePageForm::showSubpagesList(), SpecialUpload::showViewDeletedLinks(), Skin::subPageSubtitle(), ApiMain::substituteResultWithError(), MediaWiki\Auth\AuthManagerTest::testAuthentication(), 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

◆ $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 2343 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 2228 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 271 of file hooks.txt.

Referenced by RedisConnRef::__call(), StubObject::__call(), HTMLSelectLanguageField::__construct(), RefreshLinksPartitionTest::__construct(), LessTestSuite::__construct(), LinksUpdateTest::__construct(), ParserTestFileSuite::__construct(), JobQueueTest::__construct(), ApiQueryRecentChangesIntegrationTest::__construct(), ApiQueryWatchlistIntegrationTest::__construct(), EnhancedChangesListTest::__construct(), WikiPageDbTestBase::__construct(), OldChangesListTest::__construct(), SpecialChangeCredentials::__construct(), RevisionDbTestBase::__construct(), RCCacheEntryFactoryTest::__construct(), UnusedCategoriesPage::__construct(), MostrevisionsPage::__construct(), LongPagesPage::__construct(), UnusedimagesPage::__construct(), IncludableSpecialPage::__construct(), UnlistedSpecialPage::__construct(), WantedPagesPage::__construct(), DeadendPagesPage::__construct(), LonelyPagesPage::__construct(), UncategorizedTemplatesPage::__construct(), UncategorizedImagesPage::__construct(), XmlSelect::__construct(), UncategorizedPagesPage::__construct(), UnusedtemplatesPage::__construct(), WithoutInterwikiPage::__construct(), AncientPagesPage::__construct(), FewestrevisionsPage::__construct(), MostinterwikisPage::__construct(), MostimagesPage::__construct(), WantedFilesPage::__construct(), SpecialRedirectToSpecial::__construct(), BrokenRedirectsPage::__construct(), DoubleRedirectsPage::__construct(), DeprecatedGlobal::__construct(), ShortPagesPage::__construct(), WantedTemplatesPage::__construct(), SpecialGadgetUsage::__construct(), ListredirectsPage::__construct(), MIMEsearchPage::__construct(), MostlinkedTemplatesPage::__construct(), WantedCategoriesPage::__construct(), ListDuplicatedFilesPage::__construct(), MostcategoriesPage::__construct(), UncategorizedCategoriesPage::__construct(), RandomPage::__construct(), SpecialGoToInterwiki::__construct(), MostlinkedPage::__construct(), MostlinkedCategoriesPage::__construct(), UnwatchedpagesPage::__construct(), PageArchiveTestBase::__construct(), CommandLineInc::__construct(), QueryAllSpecialPagesTest::__construct(), FileDuplicateSearchPage::__construct(), SpecialRecentChanges::__construct(), LinkSearchPage::__construct(), MediaWiki\Auth\CreatedAccountAuthenticationRequest::__construct(), MediaStatisticsPage::__construct(), ApiContinuationManager::__construct(), SpecialAllPages::__construct(), NamespaceAwareForeignTitleFactory::__construct(), SpecialPagesWithProp::__construct(), PoolCounterWorkViaCallback::__construct(), ResourceLoaderImage::__construct(), DisabledSpecialPage::__construct(), BaseBlacklist::__construct(), SpecialRandomInCategory::__construct(), MemcLockManager::__construct(), FileOp::__construct(), LoginSignupSpecialPage::__construct(), RedirectSpecialArticle::__construct(), Wikimedia\Rdbms\DatabaseMysqlBase::__construct(), RecompressTracked::__construct(), ChangesListSpecialPage::__construct(), SpecialPage::__construct(), MediaWikiTestCase::__construct(), Wikimedia\Rdbms\Database::__construct(), LinkHolderArray::__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(), ApiResult::addContentField(), ApiResult::addContentValue(), ApiContinuationManager::addContinueParam(), ApiContinuationManager::addGeneratorContinueParam(), ApiContinuationManager::addGeneratorNonContinueParam(), HTMLForm::addHiddenField(), HTMLForm::addHiddenFields(), ParserOutput::addImage(), MediaHandler::addMeta(), ApiModuleManager::addModule(), ApiModuleManager::addModules(), PHPUnitMaintClass::addOption(), Maintenance::addOption(), ApiQueryBase::addOption(), ExternalUserNames::addPrefix(), TestFileReader::addRequirement(), InfoAction::addRow(), ContentHandler::addSearchField(), Wikimedia\Services\ServiceContainer::addServiceManipulator(), DatabaseUpdater::addTable(), ApiResult::addValue(), ApiPageSet::addValues(), SVGReader::animateFilterAndLang(), CleanupImages::appendTitle(), ExternalUserNames::applyPrefix(), Wikimedia\Services\ServiceContainer::applyWiring(), UserMailer::arrayToHeaderString(), MediaWiki\Tests\Maintenance\DumpAsserter::assertDumpEnd(), MediaWiki\Tests\Maintenance\DumpAsserter::assertNodeEnd(), MediaWiki\Tests\Maintenance\DumpAsserter::assertNodeStart(), MWHttpRequestTestCase::assertNotHasCookie(), MediaWiki\Tests\Maintenance\DumpAsserter::assertPageStart(), MediaWiki\Auth\AuthManagerTest::assertResponseEquals(), MediaWiki\Tests\Maintenance\DumpAsserter::assertTextNode(), Wikimedia\Rdbms\DatabaseSqlite::attachDatabase(), Xml::attrib(), SearchEngine::augmentSearchResults(), CodeCleanerGlobalsPass::beforeTraverse(), Benchmarker::bench(), SpecialRevisionDelete::buildCheckBoxes(), BatchRowIterator::buildConditions(), MysqlInstaller::buildFullUserName(), CleanupImages::buildSafeTitle(), MediaWiki\EditPage\TextboxBuilder::buildTextboxAttribs(), EditPage::buildTextboxAttribs(), CentralIdLookup::centralIdFromName(), CheckStorage::check(), Xml::check(), NamespaceDupes::checkAll(), Revision\RevisionStore::checkContent(), UserDupes::checkDupes(), DatabaseInstaller::checkExtension(), FindOrphanedFiles::checkFiles(), Xml::checkLabel(), NamespaceDupes::checkLinkTable(), NamespaceDupes::checkNamespace(), PreprocessDump::checkOptions(), MediaWiki\Permissions\PermissionManager::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(), HTMLFormFieldCloner::createFieldsForKey(), User::createNew(), RefreshLinksJobTest::createPage(), ApiMoveTest::createPage(), Wikimedia\Services\ServiceContainer::createService(), Installer::createSysop(), ChangesListSpecialPageTest::createUsers(), ImagePage::createXmlOptionStringForLanguage(), SpecialWatchlist::cutoffselector(), JobQueueRedis::decodeQueueName(), MediaWiki\Tests\Storage\DerivedPageDataUpdaterTest::defineMockContentModelForUpdateTesting(), WikiPageDbTestBase::defineMockContentModelForUpdateTesting(), Wikimedia\Services\ServiceContainer::defineService(), FormOptions::delete(), UploadFromUrlTest::deleteFile(), Maintenance::deleteOption(), Wikimedia\Services\ServiceContainer::destroy(), Wikimedia\Services\ServiceContainer::disableService(), MediaWiki\MediaWikiServices::disableStorageBackend(), MediaWiki\Tidy\RemexCompatMunger::doctype(), MediaWiki\Extensions\ParserFunctions\ExprParser::doExpression(), 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(), ImageMap::error(), UserDupes::examine(), CheckComposerLockUpToDate::execute(), ApiEditPage::execute(), DatabaseLag::execute(), ApiQueryReferences::execute(), NukePage::execute(), ApiQueryUserContribs::execute(), AttachLatest::execute(), PHPUnitMaintClass::execute(), GenerateNormalizerDataAr::execute(), PopulateCategory::execute(), ConvertExtensionToRegistration::execute(), ParserTestsMaintenance::execute(), GetConfiguration::execute(), DeferredUpdates::execute(), LocalFileDeleteBatch::execute(), MediaWiki\Special\SpecialPageFactory::executePath(), SpecialPageFactory::exists(), Action::exists(), MediaWiki\Special\SpecialPageFactory::exists(), Xml::expandAttributes(), XmlTypeCheck::expandNS(), ExtensionRegistry::exportExtractedData(), QuickTemplate::extend(), SpecialRevisionDelete::extractBitParams(), ExtensionProcessor::extractCredits(), ApiQueryRevisionsBase::extractDeprecatedContent(), ExtensionProcessor::extractHooks(), ExtensionProcessor::extractInfo(), ExtensionProcessor::extractMessagesDirs(), InputBox::extractOptions(), 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(), MonoBookTemplate::getBox(), JobQueueGroup::getCachedConfigVar(), Skin::getCachedNotice(), DisabledSpecialPage::getCallback(), 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(), MediaWiki\Logger\MonologSpi::getHandler(), Hooks::getHandlers(), MagicWordArray::getHash(), LocalFileDeleteBatch::getHashes(), 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(), 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::getLimitSelect(), ContentHandler::getLocalizedName(), SpecialPageFactory::getLocalNameFor(), MediaWiki\Special\SpecialPageFactory::getLocalNameFor(), WikiEditorHooks::getMagicWords(), TimelessTemplate::getMainNavigation(), Wikimedia\Rdbms\DatabaseMysqlBase::getMasterPos(), ParserFuzzTest::getMemoryBreakdown(), SimpleCaptcha::getMessage(), PNGMetadataExtractor::getMetadata(), FormSpecialPageTestCase::getMethod(), ParserMethodsTest::getMockTitle(), ApiParamInfo::getModuleInfo(), 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(), CategoryTreePage::getOption(), CategoryTree::getOption(), 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(), DatabaseInstaller::getPasswordBox(), TimelessTemplate::getPortlet(), MonoBookTemplate::getPortlet(), MediaWiki\Logger\MonologSpi::getProcessor(), 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(), SpecialPage::getSafeTitleFor(), OracleInstaller::getSchemaVars(), InputBox::getSearchForm(), SpecialReplaceText::getSelectedNamespaces(), Wikimedia\Rdbms\LoadBalancer::getServerName(), Wikimedia\Services\ServiceContainer::getService(), WebInstaller::getSession(), ApiQueryQueryPage::getSpecialPage(), ApiAuthManagerHelper::getStandardParams(), TablePager::getStartBody(), Revision\SlotRecord::getStringField(), 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(), EditPage::guessSectionName(), 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(), Maintenance::hasOption(), Wikimedia\Services\ServiceContainer::hasService(), Title::hasSourceText(), GlobalVarConfig::hasWithPrefix(), User::idFromName(), CleanupImages::imageExists(), RequestContext::importScopedSession(), WebInstallerExistingWiki::importVariables(), Wikimedia\Services\ServiceContainer::importWiring(), WebRequest::initHeaders(), UploadFromFile::initialize(), UploadFromStash::initialize(), UploadFromUrl::initialize(), Xml::input(), Xml::inputLabel(), Xml::inputLabelSep(), ApiModuleManager::instantiateModule(), LinksUpdate::invalidateProperties(), User::isCreatableName(), User::isIP(), ExtensionRegistry::isLoaded(), MessageCache::isMainCacheable(), Wikimedia\Rdbms\DatabaseMysqlBase::isQuotedIdentifier(), Wikimedia\Rdbms\DatabaseMssql::isQuotedIdentifier(), Wikimedia\Rdbms\Database::isQuotedIdentifier(), Hooks::isRegistered(), MediaWiki\Permissions\PermissionManager::isSameSpecialPage(), Wikimedia\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(), MediaWiki\Preferences\DefaultPreferencesFactory::loadPreferenceValues(), CentralIdLookup::localUserFromCentralId(), RenameuserSQL::lockUserAndGetId(), ProfilerOutputDb::log(), BotPassword::login(), BotPassword::loginHook(), ApiMain::logRequest(), SkinTemplate::makeArticleUrlDetails(), Wikimedia\Rdbms\DatabasePostgres::makeConnectionString(), Skin::makeI18nUrl(), Skin::makeInternalOrExternalUrl(), Skin::makeKnownUrlDetails(), ResourceLoaderClientHtml::makeLoad(), FiltersTest::makeMultiUsernameFilter(), Title::makeName(), Skin::makeNSUrl(), PageDataRequestHandlerTest::makeOutputPage(), SkinFactory::makeSkin(), Skin::makeSpecialUrl(), Skin::makeSpecialUrlSubpage(), SkinTemplate::makeTalkUrlDetails(), MediaWikiTestCase::makeTestConfigFactoryInstantiator(), LinksUpdateTest::makeTitleAndParserOutput(), Skin::makeUrl(), Skin::makeUrlDetails(), MagicWordArray::matchAndRemove(), ParserOptions::matches(), MediaWiki\Auth\AuthenticationRequest::mergeFieldInfo(), MediaWikiTestCase::mergeMwGlobalArrayValue(), ApiQueryImageInfo::mergeThumbParams(), FileRepo::nameForThumb(), CentralIdLookup::namesFromCentralIds(), SpecialReplaceText::namespaceTables(), MediaWiki\Session\UserInfo::newFromName(), Category::newFromName(), User::newFromName(), ContentHandlerTest::newSearchEngine(), User::newSystemUser(), SpecialSearchTest::newUserWithSearchNS(), Linker::normaliseSpecialPage(), 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(), GuzzleHttpRequest::parseHeader(), ApiQueryRevisionsBase::parseParameters(), Xml::password(), Wikimedia\Services\ServiceContainer::peekService(), Installer::performInstallation(), MediaWiki\Tests\Storage\NameTableStoreTest::populateTable(), MediaWiki\Auth\ThrottlePreAuthenticationProvider::postAuthentication(), SpecialSearch::powerSearch(), MediaWiki\Widget\Search\SearchFormWidget::powerSearchBox(), Title::prefix(), ApiQueryBlocks::prepareUsername(), HTTPFileStreamer::preprocessHeaders(), ProtectedPagesPager::preprocessResults(), Preprocessor_Hash::preprocessToObj(), MediaWiki\Preferences\DefaultPreferencesFactory::profilePreferences(), PasswordPolicyStructureTest::provideChecks(), 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(), Xml::radioLabel(), TestFileReader::read(), ZipDirectoryReader::readCentralDirectory(), MSCompoundFileReader::readDirectory(), Installer::readExtension(), SVGReader::readField(), Wikimedia\Rdbms\LoadBalancer::reallyOpenConnection(), Wikimedia\Rdbms\DatabasePostgres::realTableName(), Wikimedia\Rdbms\DatabaseMssql::realTableName(), Wikimedia\Rdbms\TransactionProfiler::recordQueryCompletion(), ApiFormatXmlRsd::recXmlPrint(), Wikimedia\Services\ServiceContainer::redefineService(), Category::refreshCounts(), Hooks::register(), SkinFactory::register(), LockManagerGroup::register(), FileBackendGroup::register(), BackupDumper::registerFilter(), BackupDumper::registerOutput(), HTMLFormFieldCloner::rekeyValuesArray(), Wikimedia\Rdbms\DatabasePostgres::remappedTableName(), ApiResult::removeValue(), ImageMap::render(), BaseTemplate::renderAfterPortlet(), VectorTemplate::renderNavigation(), VectorTemplate::renderPortal(), VectorTemplate::renderPortals(), Maintenance::requireExtension(), FormOptions::reset(), Wikimedia\Services\ServiceContainer::resetService(), MediaWiki\MediaWikiServices::resetServiceForTesting(), MediaWiki\Special\SpecialPageFactory::resolveAlias(), ApiQueryAllLinks::run(), 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(), ExtensionRegistry::setAttributeForTest(), SearchResultSet::setAugmentedData(), ApiResult::setContentField(), ApiResult::setContentValue(), CookieJar::setCookie(), FauxResponse::setCookie(), WebResponse::setCookie(), MWHttpRequest::setCookie(), FauxRequest::setCookies(), MediaWiki::setDBProfilingAgent(), FauxRequest::setHeader(), MWHttpRequest::setHeader(), FauxRequest::setHeaders(), ApiParse::setIndexedTagNames(), MediaWikiTestCase::setIniSetting(), Wikimedia\Rdbms\Database::setLBInfo(), ParserOutput::setLimitReportData(), HTMLForm::setName(), ParserOptions::setOption(), ParserOptions::setOptionLegacy(), Installer::setPassword(), ParserOutput::setProperty(), QuickTemplate::setRef(), GuzzleHttpRequestTester::setRespHeaders(), 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(), DatabaseInstaller::setVar(), Installer::setVar(), WebInstaller::setVarsFromRequest(), Wikimedia\Rdbms\LBFactory::setWaitForReplicationListener(), ProfilerXhprof::shouldExclude(), SpecialWatchlist::showHideCheck(), SpecialGadgets::showMainForm(), EditPage::showTextbox(), UserOptionsMaintenance::showUsageStats(), MediaWiki\Tests\Maintenance\DumpAsserter::skipPastNodeEnd(), BaseDump::skipTo(), MediaWiki\Tests\Maintenance\DumpAsserter::skipToNodeEnd(), SpecialVersion::softwareInformation(), DummyLinker::specialLink(), Linker::specialLink(), PPNode_DOM::splitArg(), TextPassDumper::startElement(), RemexStripTagHandler::startTag(), MediaWiki\Storage\NameTableStore::store(), ExtensionProcessor::storeToArray(), 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(), ApiDeleteTest::testBatchedDelete(), ApiLoginTest::testBotPasswordThrottled(), 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::testDeletionWithoutPermission(), ResourceLoaderFileModuleTest::testDeprecatedModules(), ServiceContainerTest::testDisableService_fail_undefined(), 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(), SpecialPageDataTest::testExecute(), ApiStashEditTest::testExistingPage(), ExtensionRegistryTest::testExportExtractedDataGlobals(), TextContentHandlerTest::testFieldsForIndex(), MediaWiki\Auth\ThrottlePreAuthenticationProvider::testForAuthentication(), 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(), ApiMoveTest::testMoveWhileBlocked(), MultiHttpClientTest::testMultiHttpClientHeaders(), ApiEditPageTest::testNoCreate(), ApiStashEditTest::testNonexistentBaseRevId(), 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(), 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(), ApiMoveTest::testSelfMove(), RevisionTest::testSetUserIdAndName(), ApiQuerySiteinfoTest::testSkins(), ApiEditPageTest::testSupportsDirectApiEditing_withContentHandlerOverride(), ApiMoveTest::testSuppressRedirect(), ApiMoveTest::testSuppressRedirectNoPermission(), ApiMoveTest::testTagsNoPermission(), ApiEditPageTest::testTooBigEdit(), MailAddressTest::testToString(), ApiEditPageTest::testUndoAfterContentModelChange(), ApiEditPageTest::testUndoAfterToHiddenRev(), ApiEditPageTest::testUndoAfterToInvalidRev(), ApiEditPageTest::testUndoAfterToRevFromDifferentPage(), ApiEditPageTest::testUndoToInvalidRev(), ApiEditPageTest::testUndoToRevFromDifferentPage(), ApiEditPageTest::testUndoWithConflicts(), ApiEditPageTest::testUndoWithSwappedRevisions(), ImportTest::testUnknownUserHandling(), ApiEditPageTest::testUnsupportedContentFormat(), DatabaseSqliteTest::testUpgrades(), GlobalWithDBTest::testWfIsBadImage(), Xml::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(), SpecialEmailUser::userForm(), SearchEngineConfig::userNamespaces(), XmlTypeCheck::validate(), FormOptions::validateBounds(), FormOptions::validateIntBounds(), FormOptions::validateName(), ImageHandler::validateParam(), JpegHandler::validateParam(), PdfHandler::validateParam(), BitmapHandler::validateParam(), DjVuHandler::validateParam(), SvgHandler::validateParam(), UpdateMediaWiki::validateParamsAndArgs(), ApiBase::validateUser(), wfArrayPlus2d(), wfIsBadImage(), wfStripIllegalFilenameChars(), and SpecialWhatLinksHere::whatlinkshereForm().

◆ $namespaces

namespace and then decline to actually register it& $namespaces

Definition at line 925 of file hooks.txt.

Referenced by ChangesListSpecialPage::buildQuery(), CategoryTree::decodeNamespaces(), PrefixSearch::defaultSearchBackend(), FixDefaultJsonContentPages::doDBUpdates(), ReplaceTextSearch::doSearchQuery(), SpecialPrefixindex::execute(), SpecialAllPages::execute(), CategoryTreePage::executeInputForm(), MediaWikiTestCase::getDefaultWikitextNS(), ApiHelp::getHelpInternal(), ReplaceTextSearch::getMatchingTitles(), BlockLogFormatter::getMessageParameters(), InputBox::getSearchForm(), PrefixSearch::handleResultFromHook(), Title::inNamespaces(), HTMLNamespacesMultiselectField::loadDataFromRequest(), SearchEngineConfig::namespacesAsText(), SpecialReplaceText::namespaceTables(), ShortPagesPage::reallyDoQuery(), CategoryTree::renderChildren(), SearchExactMatchRescorer::rescore(), ApiQueryAllDeletedRevisions::run(), ApiQueryDuplicateFiles::run(), PrefixSearch::search(), PrefixSearch::searchBackend(), PrefixSearchTest::searchProvision(), SearchEnginePrefixTest::searchProvision(), PrefixSearch::searchWithVariants(), Language::setNamespaces(), BackupReader::setNsfilter(), AutoloadGenerator::setPsr4Namespaces(), SpecialAllPages::showChunk(), SpecialReplaceText::showForm(), SpecialPrefixindex::showPrefixChunk(), SearchEngineTest::testCompletionSearchMustRespectCapitalLinkOverrides(), SearchEngineTest::testParseNamespacePrefix(), PrefixSearchTest::testSearch(), PrefixSearchTest::testSearchWithOffset(), ImportTest::testSiteInfoContainsNamespaces(), PrefixSearch::titleSearch(), HTMLNamespacesMultiselectField::validate(), and PrefixSearch::validateNamespaces().

◆ $newminor

also included in $newHeader if any $newminor

Definition at line 1269 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 1679 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 1273 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 1993 of file hooks.txt.

Referenced by CiteCSSFileModule::__construct(), ResourceLoaderLessVarFileModule::__construct(), MediaWiki\Tidy\RemexCompatFormatter::__construct(), ResourceLoaderOOUIFileModule::__construct(), MediaWiki\Widget\ExpiryInputWidget::__construct(), SquidPurgeClientPool::__construct(), CategoryTree::__construct(), Wikimedia\Rdbms\LoadMonitorMySQL::__construct(), Gadget::__construct(), ParserTestPrinter::__construct(), UploadForm::__construct(), CheckLanguageCLI::__construct(), StripState::__construct(), GuzzleHttpRequest::__construct(), MappedIterator::__construct(), PasswordFactory::__construct(), TestFileReader::__construct(), Wikimedia\Rdbms\LoadMonitor::__construct(), ProfilerXhprof::__construct(), RandomImageGenerator::__construct(), RedisConnectionPool::__construct(), ResourceLoaderWikiModule::__construct(), MultiHttpClient::__construct(), MWHttpRequest::__construct(), ResourceLoaderTestModule::__construct(), RenameuserSQL::__construct(), ContribsPager::__construct(), XmlTypeCheck::__construct(), RecompressTracked::__construct(), ResourceLoaderImageModule::__construct(), Block::__construct(), ZipDirectoryReader::__construct(), MediaWiki\Session\SessionManager::__construct(), ResourceLoaderFileTestModule::__construct(), ResourceLoaderFileModule::__construct(), PathRouter::add(), PathRouter::addStrict(), RedisConnectionPool::applyDefaultConfig(), Wikimedia\Rdbms\LoadBalancer::approveMasterChanges(), MediaWikiTestCase::assertSelect(), MediaWiki\Auth\AuthManager::autoCreateUser(), MediaWiki\Linker\LinkRenderer::buildAElement(), SpecialActiveUsers::buildForm(), RangeChronologicalPager::buildQueryInfo(), ActiveUsersPager::buildQueryInfo(), IndexPager::buildQueryInfo(), SimpleCaptcha::buildRegexes(), Linker::buildRollbackLink(), Wikimedia\Rdbms\Database::buildSelectSubquery(), MediaWiki\Auth\AuthManager::canCreateAccount(), NamespaceDupes::checkAll(), NamespaceDupes::checkLinkTable(), NamespaceDupes::checkNamespace(), NamespaceDupes::checkPrefix(), ApiBase::checkTitleUserPermissions(), 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(), MediaWiki\Linker\LinkRendererFactory::createFromLegacyOptions(), Http::createMultiClient(), SpecialWatchlist::cutoffselector(), CheckExtensionsCLI::defaultChecks(), Block::defaultRetroactiveAutoblock(), PrefixSearch::defaultSearchBackend(), LocalRepo::deletedFileHasKey(), ApiBase::dieWithException(), PathRouter::doAdd(), SiteStatsInit::doAllAndCommit(), WikiPage::doEditUpdates(), Article::doEditUpdates(), ApiBaseTest::doGetParameterFromSettings(), RevDelArchiveList::doQuery(), UserCache::doQuery(), ReplaceTextSearch::doSearchQuery(), WikiPage::doSecondaryDataUpdates(), Skin::editUrlOptions(), Xhprof::enable(), FormatJson::encode(), ApiFormatTestBase::encodeData(), ApiFormatBaseTest::encodeData(), CategoryTree::encodeOptions(), Wikimedia\Rdbms\DatabasePostgres::estimateRowCount(), Wikimedia\Rdbms\DatabaseMssql::estimateRowCount(), Wikimedia\Rdbms\DatabaseMysqlBase::estimateRowCount(), Wikimedia\Rdbms\Database::estimateRowCount(), GenerateRandomImages::execute(), ApiCategoryTree::execute(), ApiExpandTemplates::execute(), SpecialApiHelp::execute(), SpecialExpandTemplates::execute(), CategoryTreePage::execute(), CommandLineInc::execute(), UpdateCollation::execute(), NamespaceDupes::execute(), PhpHttpRequest::execute(), RefreshImageMetadata::execute(), PPFuzzTest::execute(), ResourceLoaderFileModule::extractBasePaths(), ResourceLoaderImageModule::extractLocalBasePath(), InputBox::extractOptions(), ApiBase::extractRequestParams(), MWHttpRequest::factory(), MWHttpRequestTester::factory(), MediaWiki\Storage\SqlBlobStore::fetchBlob(), QueryPage::fetchFromCache(), Revision\RevisionStore::fetchRevisionRowFromConds(), GadgetDefinitionContent::fillParserOutput(), TextContent::fillParserOutput(), WikitextContent::fillParserOutput(), HTMLMultiSelectField::filterDataForSubmit(), RepoGroup::findFile(), FileRepo::findFile(), RepoGroup::findFileFromKey(), FileRepo::findFileFromKey(), FileRepo::findFiles(), SimpleCaptcha::findLinks(), Wikimedia\Rdbms\DatabaseSqlite::fixIgnore(), HTMLFormField::flattenOptions(), DatabaseTestHelper::forceNextQueryError(), ApiErrorFormatter::formatException(), ApiErrorFormatter_BackCompat::formatException(), HTMLMultiSelectField::formatOptions(), HTMLRadioField::formatOptions(), DummyLinker::generateRollback(), Linker::generateRollback(), Http::get(), User::getActorId(), NamespaceDupes::getAlternateTitle(), CaptchaPreAuthenticationProvider::getAuthenticationRequests(), TitleBlacklistPreAuthenticationProvider::getAuthenticationRequests(), MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProvider::getAuthenticationRequests(), MediaWiki\Auth\AuthManager::getAuthenticationRequests(), MediaWiki\Auth\AuthManager::getAuthenticationRequestsInternal(), Title::getAuthorsBetween(), MonoBookTemplate::getBox(), CategoryMembershipChangeJob::getCategoriesAtRev(), EditPage::getCheckboxesWidget(), InstallerOverrides::getCliInstaller(), DBLockManager::getConnection(), WikiPage::getContributors(), DBAccessObjectUtils::getDBOptions(), ResourceLoaderImageModule::getDefinitionSummary(), ResourceLoaderFileModule::getDefinitionSummary(), ImagePage::getEmptyPageParserOutput(), MediaWiki\Auth\ConfirmLinkAuthenticationRequest::getFieldInfo(), LogEventsList::getFiltersDesc(), SpecialPageLanguage::getFormFields(), SpecialChangeContentModel::getFormFields(), ApiHelp::getHelp(), ApiHelp::getHelpInternal(), MonoBookTemplate::getIfExists(), ResourceLoaderImageModule::getImages(), HTMLRadioField::getInputOOUI(), HTMLMultiSelectField::getInputOOUI(), 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(), MonoBookTemplate::getPortlet(), GadgetHooks::getPreferences(), LinkFilter::getQueryConditions(), ShortPagesPage::getQueryInfo(), NewFilesPager::getQueryInfo(), ActiveUsersPager::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(), WatchedItemQueryService::getStartEndConds(), WatchedItemQueryService::getStartFromConds(), ResourceLoaderWikiModule::getStyles(), Title::getSubpages(), MysqlInstaller::getTableOptions(), NamespaceDupes::getTargetList(), Title::getTemplateLinksFrom(), Title::getTemplateLinksTo(), ResourceLoaderImageTest::getTestImage(), ParserOutput::getText(), ImageHistoryList::getThumbForLine(), SpecialProtectedpages::getTypeMenu(), WatchedItemQueryService::getUserRelatedConds(), MediaWiki\Session\SessionManager::getVaryHeaders(), NoWriteWatchedItemStore::getWatchedItemsForUser(), WatchedItemQueryService::getWatchedItemsForUser(), WatchedItemStore::getWatchedItemsForUser(), WatchedItemQueryService::getWatchedItemsForUserQueryConds(), WatchedItemQueryService::getWatchedItemsForUserQueryDbOptions(), WatchedItemQueryService::getWatchedItemsWithRCInfoQueryConds(), WatchedItemQueryService::getWatchedItemsWithRCInfoQueryDbOptions(), WatchedItemQueryService::getWatchedItemsWithRCInfoQueryFields(), WatchedItemQueryService::getWatchedItemsWithRCInfoQueryFilterConds(), WatchedItemQueryService::getWatchedItemsWithRCInfoQueryJoinConds(), WatchedItemQueryService::getWatchedItemsWithRCInfoQueryTables(), WatchedItemQueryService::getWatchedItemsWithRecentChangeInfo(), WatchedItemQueryService::getWatchlistOwnerId(), 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(), Language::internalUserTimeAndDate(), 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(), makeCacheKeyHash(), DummyLinker::makeCommentLink(), Linker::makeCommentLink(), Wikimedia\Rdbms\Database::makeGroupByWithHaving(), Wikimedia\Rdbms\DatabaseSqlite::makeInsertOptions(), Wikimedia\Rdbms\Database::makeInsertOptions(), BaseTemplate::makeLink(), VectorTemplate::makeLink(), VectorTemplate::makeListItem(), BaseTemplate::makeListItem(), SpecialRecentChanges::makeOptionsLink(), Wikimedia\Rdbms\Database::makeOrderBy(), WikiPage::makeParserOptions(), SkinTemplate::makePersonalToolsList(), 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\DatabasePostgres::makeUpdateOptionsArray(), Wikimedia\Rdbms\Database::makeUpdateOptionsArray(), MediaWiki\Auth\AuthenticationRequest::mergeFieldInfo(), ChangeTags::modifyDisplayQuery(), ApiMain::modifyHelp(), Xml::monthSelector(), BotPassword::newFromCentralId(), RecompressTracked::newFromCommandLine(), MediaWikiGadgetsDefinitionRepo::newFromDefinition(), TitleBlacklistEntry::newFromString(), User::newSystemUser(), onContentGetParserOutput(), ImagePage::openShowImage(), SpecialRecentChanges::optionsPanel(), WikiPage::pageData(), WikiPage::pageDataFromId(), Article::pageDataFromId(), WikiPage::pageDataFromTitle(), Article::pageDataFromTitle(), InfoAction::pageInfo(), CLIParser::parse(), FormatJson::parse(), MediaWiki\Session\ImmutableSessionProviderWithCookie::persistSession(), MediaWiki\Session\CookieSessionProvider::persistSession(), Http::post(), MediaWiki::preOutputCommit(), BackupDumper::processOptions(), MediaWiki\Preferences\DefaultPreferencesFactory::profilePreferences(), ApiFormatRawTest::provideGeneralEncoding(), FileRepo::publish(), LocalFile::publish(), FileRepo::publishBatch(), LocalFile::publishTo(), ForeignAPIFile::purgeCache(), LocalFile::purgeCache(), ForeignAPIFile::purgeThumbnails(), LocalFile::purgeThumbnails(), BacklinkCache::queryLinks(), UserCache::queryNeeded(), FileRepo::quickImport(), TestFileReader::read(), ZipDirectoryReader::read(), ShortPagesPage::reallyDoQuery(), ContribsPager::reallyDoQuery(), ImageListPager::reallyDoQuery(), QueryPage::reallyDoQuery(), IndexPager::reallyDoQuery(), UploadFromUrl::reallyFetchFile(), DateFormatter::reformat(), ImageMap::render(), CategoryTree::renderChildren(), Http::request(), MediaWiki\Tests\Revision\PreMcrRevisionStoreDbTest::revisionToRow(), MediaWiki\Tests\Revision\NoContentModelRevisionStoreDbTest::revisionToRow(), MediaWiki\Tests\Revision\McrWriteBothRevisionStoreDbTest::revisionToRow(), MediaWiki\Tests\Revision\RevisionStoreDbTestBase::revisionToRow(), JobRunner::run(), RefreshLinksJob::runForTitle(), MediaWiki\Linker\LinkRenderer::runLegacyBeginHook(), TableCleanup::runTable(), 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(), FauxResponse::setCookie(), WebResponse::setCookie(), Maintenance::setParam(), Article::setParserOptions(), Wikimedia\Rdbms\DatabaseMysqlBase::setSessionOptions(), FileDeleteForm::showForm(), SpecialWatchlist::showHideCheck(), LoginHelper::showReturnToPage(), RedisConnectionPool::singleton(), SevenZipStream::stream_open(), 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_known(), 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::testGetWatchedItemsForUser_fromUntilStartFromOptions(), WatchedItemQueryServiceUnitTest::testGetWatchedItemsForUser_optionsAndEmptyResult(), WatchedItemQueryServiceUnitTest::testGetWatchedItemsWithRecentChangeInfo_extension(), WatchedItemQueryServiceUnitTest::testGetWatchedItemsWithRecentChangeInfo_invalidOptions(), WatchedItemQueryServiceUnitTest::testGetWatchedItemsWithRecentChangeInfo_mysqlIndexOptimization(), WatchedItemQueryServiceUnitTest::testGetWatchedItemsWithRecentChangeInfo_optionsAndEmptyResult(), WatchedItemQueryServiceUnitTest::testGetWatchedItemsWithRecentChangeInfo_userPermissionRelatedExtraChecks(), MediaWiki\Tests\Permissions\PermissionManagerTest::testIsBlockedFrom(), UserTest::testIsBlockedFrom(), 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(), Argon2PasswordTest::testPartialConfig(), GadgetTest::testPreferences(), TextContentTest::testPreloadTransform(), MediaWiki\Tests\Storage\DerivedPageDataUpdaterTest::testPrepareUpdate(), MediaWiki\Tests\Storage\DerivedPageDataUpdaterTest::testPrepareUpdateOutputReset(), MediaWiki\Tests\Storage\DerivedPageDataUpdaterTest::testPrepareUpdateReusesParserOutput(), TextContentTest::testPreSaveTransform(), MediaWiki\Tests\Revision\RevisionQueryInfoTest::testRevisionGetQueryInfo(), MediaWiki\Tests\Revision\RevisionQueryInfoTest::testRevisionStoreGetQueryInfo(), MediaWiki\Tests\Revision\RevisionQueryInfoTest::testRevisionStoreGetSlotsQueryInfo(), RefreshLinksJobTest::testRunForSinglePage(), MediaWiki\Logger\Monolog\KafkaHandlerTest::testSendException(), MediaWiki\Tests\Revision\RenderedRevisionTest::testSetRevisionParserOutput(), MediaWiki\Logger\Monolog\KafkaHandlerTest::testTopicNaming(), MediaWiki\Tests\Revision\RenderedRevisionTest::testUpdateRevision(), MediaWiki\Auth\LocalPasswordPrimaryAuthenticationProvider::testUserExists(), MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProvider::testUserExists(), TitleBlacklistPreAuthenticationProvider::testUserForCreation(), GlobalTest::testWfShellWikiCmd(), DummyLinker::titleAttrib(), Linker::titleAttrib(), TraditionalImageGallery::toHTML(), ThumbnailImage::toHtml(), DummyLinker::tooltip(), Linker::tooltip(), Linker::tooltipAndAccesskeyAttribs(), 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 When $user is not it can be in the form of<username><more info> e g for bot passwords intended to be added to log contexts Fields it might only if the login was with a bot password 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 780 of file hooks.txt.

Referenced by StatusValue::__toString(), EditPage::addEditNotices(), EditPage::addExplainConflictHeader(), SimpleCaptcha::addFormInformationToOutput(), CategoryTreeHooks::addHeaders(), Article::addHelpLink(), EditPage::addLongPageWarningHeader(), MWDebug::addModules(), SpecialRecentChanges::addModules(), ChangesListSpecialPage::addModules(), ParserOutput::addOutputPageMetadata(), EditPage::addPageProtectionWarningHeaders(), UploadForm::addUploadJS(), Article::adjustDisplayTitle(), SiteConfiguration::arrayMerge(), GadgetHooks::beforePageDisplay(), SkinTemplate::buildContentNavigationUrls(), ProtectionForm::buildForm(), SkinTemplate::buildNavUrls(), SpecialInterwiki::canModify(), 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(), SpecialReplaceText::doSpecialReplaceText(), MovePageForm::doSubmit(), EditPage::edit(), SimpleCaptcha::editShowCaptcha(), Xml::element(), SkinVector::enableResponsiveMode(), ChangesList::endRecentChangesList(), MediaWiki\Logger\Monolog\LineFormatter::exceptionAsArray(), SpecialRenameuser::execute(), SpecialListFiles::execute(), SpecialApiSandbox::execute(), ApiHelp::execute(), SpecialJavaScriptTest::execute(), SpecialLog::execute(), SpecialNewFiles::execute(), SpecialSpecialpages::execute(), SpecialActiveUsers::execute(), SpecialContributions::execute(), SpecialUserLogout::execute(), SpecialAutoblockList::execute(), SpecialListGrants::execute(), SpecialAllMessages::execute(), SpecialExport::execute(), SpecialPasswordPolicies::execute(), SpecialPreferences::execute(), FormatInstallDoc::execute(), SpecialBlockList::execute(), SpecialBookSources::execute(), SpecialInterwiki::execute(), DeletedContributionsPage::execute(), SpecialListGroupRights::execute(), SpecialUnblock::execute(), SpecialReplaceText::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(), SimpleCaptcha::findLinks(), LCStoreStaticArray::finishWrite(), SpecialNewpages::form(), FormatMetadata::formatNum(), BrokenRedirectsPage::formatResult(), MediaWikiTitleCodec::formatTitle(), HOTP::generateByTimeWindow(), 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(), HTMLFancyCaptchaField::getInputHTML(), HTMLMultiSelectField::getInputOOUI(), ResourceLoaderStartUpModule::getModuleRegistrations(), MultimediaViewerHooks::getModules(), MultimediaViewerHooks::getModulesForArticle(), MultimediaViewerHooks::getModulesForCategory(), Skin::getNewtalks(), SpecialVersion::getParserFunctionHooks(), SpecialVersion::getParserTags(), EditPage::getPreviewText(), SpecialVersion::getSkinCredits(), DeletedContributionsPage::getSubTitle(), EditPage::handleStatus(), Language::iconv(), ImagePage::imageDupes(), ImagePage::imageHistory(), ImagePage::imageLinks(), ChangesListSpecialPage::includeRcFiltersApp(), SkinTimeless::initPage(), SkinFallback::initPage(), SkinVector::initPage(), SimpleCaptcha::injectEmailUser(), SpecialNuke::listForm(), ProfilerOutputText::log(), LoginSignupSpecialPage::mainLoginForm(), MultimediaViewerHooks::makeGlobalVariablesScript(), SpecialExpandTemplates::makeOutput(), SpecialInterwiki::makeTable(), JavaScriptMinifier::minify(), SearchMySQL::normalizeText(), EditPage::noSuchSectionPage(), ConfirmEditHooks::onAlternateEditPreview(), onApiFormatHighlight(), onContentGetParserOutput(), RenameuserHooks::onShowMissingArticle(), 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(), CategoryTreeHooks::outputPageMakeCategoryLinks(), ImageQueryPage::outputResults(), SpecialGadgetUsage::outputResults(), QueryPage::outputResults(), SpecialEditWatchlist::outputSubtitle(), MediaStatisticsPage::outputTableStart(), Revision\RenderedRevision::outputVariesOnRevisionMetaData(), SpecialReplaceText::pageListForm(), Installer::parse(), DiffHistoryBlob::patch(), SpecialJavaScriptTest::plainQUnit(), SpecialChangeContentModel::postText(), SpecialBlock::postText(), SkinTemplate::prepareQuickTemplate(), ImagePage::printSharedImageText(), SearchHighlighter::process(), SpecialTags::processCreateTagForm(), SpecialTags::processTagForm(), SpecialNuke::promptForm(), UserMailer::quotedPrintable(), ConvertExtensionToRegistration::removeAbsolutePath(), ConvertExtensionToRegistration::removeAutodiscoveredParserTestFiles(), MediaWiki\Widget\Search\BasicSearchResultSetWidget::render(), MediaWiki\Widget\Search\SimpleSearchResultSetWidget::render(), DifferenceEngine::renderNewRevision(), ReplaceTextHooks::replaceTextReminder(), ProtectionForm::save(), ApiMain::sendCacheHeaders(), SpecialEmailUser::sendEmailForm(), ContentSecurityPolicy::sendHeaders(), Action::setHeaders(), SpecialPage::setHeaders(), EditPage::setHeaders(), SpecialSearch::setupPage(), SkinMonoBook::setupSkinUserCss(), SkinTimeless::setupSkinUserCss(), SkinVector::setupSkinUserCss(), EditAction::show(), ProtectAction::show(), McrUndoAction::show(), ProtectionForm::show(), SpecialTags::showActivateDeactivateForm(), SpecialAllPages::showChunk(), SpecialCiteThisPage::showCitations(), EditPage::showConflict(), SpecialTags::showDeleteTagForm(), DifferenceEngine::showDiffPage(), EditPage::showEditForm(), ConfirmEditHooks::showEditFormFields(), SimpleCaptcha::showEditFormFields(), ImagePage::showError(), SpecialUndelete::showFileConfirmationForm(), MovePageForm::showForm(), SpecialEditTags::showForm(), SpecialImport::showForm(), SpecialRevisionDelete::showForm(), SpecialReplaceText::showForm(), EditPage::showFormBeforeText(), EditPage::showHeader(), SpecialMergeHistory::showHistory(), SpecialUndelete::showHistory(), SpecialExpandTemplates::showHtmlPreview(), SpecialWhatLinksHere::showIndirectLinks(), EditPage::showIntro(), SpecialAutoblockList::showList(), SpecialBookSources::showList(), SpecialBlockList::showList(), SpecialUndelete::showList(), SpecialRenameuser::showLogExtract(), 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(), ExtraParserTest::testCleanSigInSig(), PoolWorkArticleViewTest::testDoWorkParserCache(), ExtensionProcessorTest::testExtractExtensionMessagesFiles(), ExtensionProcessorTest::testExtractMessagesDirs(), ExtensionProcessorTest::testExtractResourceLoaderModules(), ResourceLoaderStartUpModuleTest::testGetModuleRegistrations(), ResourceLoaderWikiModuleTest::testGetPages(), ParserMethodsTest::testGetSections(), ApiRevisionDeleteTest::testHidingRevisions(), 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(), 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 2228 of file hooks.txt.

◆ $parser

function wfGetCustomMagicWordValue $parser
Initial value:
{
$parser->setFunctionHook( 'mag_custom', 'wfGetCustomMagicWordValue' )

Definition at line 1802 of file hooks.txt.

Referenced by ParserDiffTest::__call(), PhpXmlBugTester::__construct(), InputBox::__construct(), WebInstaller::__construct(), CoreParserFunctions::anchorencode(), CoreParserFunctions::bidi(), CoreParserFunctions::cascadingsources(), MediaWiki\Preferences\DefaultPreferencesFactory::cleanSignature(), CoreParserFunctions::defaultsort(), CoreParserFunctions::displaytitle(), BenchmarkJSMinPlus::execute(), JSParseHelper::execute(), FormatInstallDoc::execute(), FindDeprecated::execute(), CoreParserFunctions::formatDate(), CoreParserFunctions::formatnum(), ParserFuzzTest::fuzzTest(), CoreTagHooks::gallery(), CoreParserFunctions::gender(), CoreParserFunctions::getCachedRevisionObject(), Linker::getImageLinkMTOParams(), PreprocessDump::getStripList(), CategoryTree::getTag(), CoreParserFunctions::grammar(), ParserMethodsTest::helperParserFunc(), CoreTagHooks::html(), PageDataRequestHandler::httpContentNegotiation(), MediaWiki\Extensions\ParserFunctions\ParserFunctions::iferrorObj(), MediaWiki\Extensions\ParserFunctions\ParserFunctions::ifexistCommon(), MediaWiki\Extensions\ParserFunctions\ParserFunctions::ifexistObj(), MediaWiki\Extensions\ParserFunctions\ParserFunctions::ifexprObj(), CoreTagHooks::indicator(), Poem::init(), CoreParserFunctions::intFunction(), Title::isValid(), Xml::isWellFormed(), CoreParserFunctions::lc(), CoreParserFunctions::lcfirst(), MediaWiki\Extensions\ParserFunctions\ParserFunctions::localTime(), MediaWiki\Extensions\ParserFunctions\ParserFunctions::localTimeObj(), DummyLinker::makeImageLink(), Linker::makeImageLink(), CoreParserFunctions::ns(), CoreParserFunctions::nse(), CoreParserFunctions::numberingroup(), CoreParserFunctions::numberofactiveusers(), CoreParserFunctions::numberofadmins(), CoreParserFunctions::numberofarticles(), CoreParserFunctions::numberofedits(), CoreParserFunctions::numberoffiles(), CoreParserFunctions::numberofpages(), CoreParserFunctions::numberofusers(), MediaWiki\Extensions\ParserFunctions\Hooks::onParserFirstCallInit(), ImageMap::onParserFirstCallInit(), CoreParserFunctions::pad(), CoreParserFunctions::padleft(), CoreParserFunctions::padright(), CoreParserFunctions::pageid(), CoreParserFunctions::pagesincategory(), CoreParserFunctions::pagesinnamespace(), CoreParserFunctions::pagesize(), Installer::parse(), MessageCache::parse(), CategoryTreeHooks::parserFunction(), CategoryTreeHooks::parserHook(), CoreParserFunctions::plural(), MediaWiki\Storage\DerivedPageDataUpdater::prepareContent(), CoreParserFunctions::protectionexpiry(), CoreParserFunctions::protectionlevel(), TextPassDumper::readDump(), InputBoxHooks::register(), CoreTagHooks::register(), CoreParserFunctions::register(), MediaWiki\Extensions\ParserFunctions\ParserFunctions::rel2abs(), ImageMap::render(), InputBoxHooks::render(), Poem::renderPoem(), CoreParserFunctions::revisionday(), CoreParserFunctions::revisionday2(), CoreParserFunctions::revisionid(), CoreParserFunctions::revisionmonth(), CoreParserFunctions::revisionmonth1(), CoreParserFunctions::revisiontimestamp(), CoreParserFunctions::revisionuser(), CoreParserFunctions::revisionyear(), MediaWiki\Extensions\ParserFunctions\ParserFunctions::runCount(), MediaWiki\Extensions\ParserFunctions\ParserFunctions::runExplode(), MediaWiki\Extensions\ParserFunctions\ParserFunctions::runLen(), MediaWiki\Extensions\ParserFunctions\ParserFunctions::runPos(), MediaWiki\Extensions\ParserFunctions\ParserFunctions::runReplace(), MediaWiki\Extensions\ParserFunctions\ParserFunctions::runRPos(), MediaWiki\Extensions\ParserFunctions\ParserFunctions::runSub(), MediaWiki\Extensions\ParserFunctions\ParserFunctions::runUrlDecode(), ParserDiffTest::setFunctionHook(), CategoryTreeHooks::setHooks(), ImageGalleryBase::setParser(), Revision\RenderedRevision::setRevisionInternal(), ParserTestParserHook::setup(), ParserOptions::setupFakeRevision(), SpecialCiteThisPage::showCitations(), CoreParserFunctions::special(), CoreParserFunctions::speciale(), TextPassDumper::startElement(), ParserTestParserHook::staticTagHook(), MediaWiki\Extensions\ParserFunctions\ParserFunctions::switchObj(), CoreParserFunctions::tagObj(), ParserFactoryTest::testAllArgumentsWerePassed(), TagHooksTest::testBadFunctionTagHooks(), TagHooksTest::testBadTagHooks(), ExpressionTest::testExpression(), TagHooksTest::testFunctionTagHooks(), JavaScriptMinifierTest::testMinifyOutput(), HttpAcceptParserTest::testParseWeights(), TagHooksTest::testTagHooks(), MediaWiki\Extensions\ParserFunctions\ParserFunctions::time(), MediaWiki\Extensions\ParserFunctions\ParserFunctions::timeCommon(), MediaWiki\Extensions\ParserFunctions\ParserFunctions::timeObj(), 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 1588 of file hooks.txt.

Referenced by ApiQueryReferences::__construct(), ApiQueryExtLinksUsage::__construct(), ApiQueryAllUsers::__construct(), ApiQueryOATH::__construct(), ApiQueryCategories::__construct(), ApiQueryCategoryMembers::__construct(), ApiQueryDuplicateFiles::__construct(), ApiQueryProtectedTitles::__construct(), ApiQueryRandom::__construct(), ApiQueryStashImageInfo::__construct(), ApiQueryTags::__construct(), ApiQueryExternalLinks::__construct(), ApiQueryAllCategories::__construct(), ApiQueryImages::__construct(), ApiQueryMyStashedFiles::__construct(), ApiQueryCategoryInfo::__construct(), ApiQueryAllPages::__construct(), ApiQueryFileRepoInfo::__construct(), ApiQueryTitleBlacklist::__construct(), ApiQueryIWBacklinks::__construct(), ApiQueryLangBacklinks::__construct(), ApiQueryLangLinks::__construct(), ApiQueryPagePropNames::__construct(), ApiQueryPageProps::__construct(), ApiQueryPagesWithProp::__construct(), ApiQueryPrefixSearch::__construct(), ApiQueryAllMessages::__construct(), ApiQueryAuthManagerInfo::__construct(), ApiQueryIWLinks::__construct(), ApiQueryBlocks::__construct(), ApiQueryWatchlistRaw::__construct(), ApiQueryImageInfo::__construct(), ApiQueryDeletedrevs::__construct(), ApiQueryUserContribs::__construct(), ApiQueryAllRevisions::__construct(), ApiQueryLinks::__construct(), ApiQueryLogEvents::__construct(), ApiQueryRecentChanges::__construct(), ApiQueryFilearchive::__construct(), ApiQuerySearch::__construct(), ApiQueryAllDeletedRevisions::__construct(), ApiQueryAllImages::__construct(), ApiQueryAllLinks::__construct(), ApiQueryDeletedRevisions::__construct(), ApiQueryUserInfo::__construct(), ApiQueryWatchlist::__construct(), ApiQueryRevisions::__construct(), ApiQueryContributors::__construct(), ApiQueryQueryPage::__construct(), ApiQueryUsers::__construct(), ApiQueryInfo::__construct(), ApiQueryBacklinks::__construct(), ApiQueryBacklinksprop::__construct(), MockSearchEngine::addMockResults(), SpecialUserLogin::beforeExecute(), SkinTemplate::buildPersonalUrls(), SpecialPage::buildPrevNextNavigation(), 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(), DeletedContribsPager::getDefaultQuery(), LogPager::getDefaultQuery(), ContribsPager::getDefaultQuery(), UsersPager::getDefaultQuery(), MediaTransformOutput::getDescLinkAttribs(), FileRepo::getDescriptionRenderUrl(), WebInstaller::getDocUrl(), SpecialRecentChanges::getFeedQuery(), ImageListPager::getForm(), Title::getFullURL(), Title::getFullUrlForRedirect(), ApiPageSet::getGenerators(), 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(), SpecialRunJobs::getQuerySignature(), Linker::getRevDeleteLink(), LogEventsList::getShowHideLinks(), TablePager::getStartBody(), Linker::getUploadUrl(), ResourceLoaderImage::getUrl(), WebInstaller::getUrl(), EditPage::handleStatus(), HistoryPager::historyLine(), ForeignAPIRepo::httpGetCached(), ImageHistoryList::imageHistoryLine(), ImagePage::imageLinks(), ChangesList::insertDiffHist(), 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(), RenameuserLogFormatter::myPageLink(), SpecialPage::numLink(), Language::numLink(), SwiftFileBackend::objectListing(), SpecialChangeEmail::onSuccess(), SearchEngine::parseNamespacePrefixes(), MediaWiki::performRequest(), ApiQueryBase::prepareUrlQuerySearchString(), MarkpatrolledAction::preText(), 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(), 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(), SkinTemplate::setupTemplateForOutput(), SpecialAllPages::showChunk(), DifferenceEngine::showDiffPage(), SpecialPrefixindex::showPrefixChunk(), Article::showRedirectedFromHeader(), SkinTemplate::tabAction(), Wikimedia\Rdbms\DatabaseMysqlBase::tableExists(), WfAppendQueryTest::testAppendQuery(), TitleMethodsTest::testGetLinkURL(), 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 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 979 of file hooks.txt.

Referenced by _recaptcha_http_post(), _recaptcha_qsencode(), MediaWiki\Auth\AuthManager::allowsAuthenticationDataChange(), SwiftVirtualRESTService::applyAuthResponse(), 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\LocalPasswordPrimaryAuthenticationProvider::beginPrimaryAuthentication(), MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProvider::beginPrimaryAuthentication(), ApiAuthManagerHelper::blacklistAuthenticationRequests(), SpecialActiveUsers::buildForm(), MediaWiki\Auth\AuthManager::changeAuthenticationData(), 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(), WikiEditorHooks::editPageShowEditFormFields(), SpecialNuke::execute(), ApiEditPage::execute(), ApiChangeAuthenticationData::execute(), ApiParse::execute(), ApiRemoveAuthenticationData::execute(), ApiAMCreateAccount::execute(), ApiClientLogin::execute(), PasswordReset::execute(), MediaWiki\Auth\AbstractPasswordPrimaryAuthenticationProvider::failResponse(), ForeignResourceManager::fetch(), MediaWiki\Auth\AuthManager::fillRequests(), MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProvider::finishAccountCreation(), ApiAuthManagerHelper::formatRequests(), MediaWiki\Auth\AuthManager::getAuthenticationRequestsInternal(), SpecialChangeCredentials::getAuthForm(), CaptchaPreAuthenticationProviderTest::getCaptchaRequest(), MultiHttpClient::getCurlHandle(), MediaWiki\Auth\ConfirmLinkAuthenticationRequest::getFieldInfo(), MediaWiki\Auth\RememberMeAuthenticationRequestTest::getInstance(), MediaWiki\Auth\ConfirmLinkAuthenticationRequestTest::getLinkRequests(), MediaWiki\Auth\ConfirmLinkSecondaryAuthenticationProviderTest::getLinkRequests(), ApiMainTest::getNonInternalApiMain(), MediaWiki\Auth\AuthenticationRequest::getRequestByClass(), MediaWiki\Auth\ButtonAuthenticationRequest::getRequestByName(), MediaWiki\Auth\ConfirmLinkAuthenticationRequest::getUniqueId(), MediaWiki\Auth\AuthenticationRequest::getUsernameFromRequests(), AuthManagerSpecialPage::hasOwnSubmitButton(), ForeignAPIRepo::httpGet(), SpecialChangeCredentials::loadAuth(), AuthManagerSpecialPage::loadAuth(), ApiAuthManagerHelper::loadAuthenticationRequests(), MediaWiki\Auth\AuthenticationRequest::loadRequestsFromSubmission(), ResourceLoaderClientHtml::makeContext(), ApiQueryTestBase::merge(), MediaWiki\Auth\AuthenticationRequest::mergeFieldInfo(), WebRequestTest::mockWebRequest(), AuthManagerSpecialPage::needsSubmitButton(), MultiHttpClient::normalizeRequests(), MathCaptcha::onAuthChangeFormFields(), QuestyCaptcha::onAuthChangeFormFields(), ReCaptcha::onAuthChangeFormFields(), FancyCaptcha::onAuthChangeFormFields(), SimpleCaptcha::onAuthChangeFormFields(), 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\LocalPasswordPrimaryAuthenticationProvider::providerAllowsAuthenticationDataChange(), MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProvider::providerAllowsAuthenticationDataChange(), MediaWiki\Auth\LocalPasswordPrimaryAuthenticationProvider::providerChangeAuthenticationData(), MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProvider::providerChangeAuthenticationData(), MediaWiki\Auth\AbstractSecondaryAuthenticationProvider::providerRevokeAccessForUser(), MediaWiki\Auth\AbstractPrimaryAuthenticationProvider::providerRevokeAccessForUser(), UploadFromUrl::reallyFetchFile(), Http::request(), VirtualRESTServiceClient::runMulti(), MultiHttpClient::runMultiCurl(), MultiHttpClient::runMultiHttp(), MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProvider::sendPasswordResetEmail(), RESTBagOStuff::set(), SpecialChangeCredentials::showSubpageList(), MediaWiki\Auth\AbstractPrimaryAuthenticationProviderTest::testAbstractPrimaryAuthenticationProvider(), MediaWiki\Auth\AbstractSecondaryAuthenticationProviderTest::testAbstractSecondaryAuthenticationProvider(), MediaWiki\Auth\LocalPasswordPrimaryAuthenticationProviderTest::testAccountCreation(), MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProviderTest::testAccountCreation(), MediaWiki\Auth\AuthManagerTest::testAccountCreation(), MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProviderTest::testAccountCreationEmail(), MediaWiki\Auth\AuthManagerTest::testAccountLink(), ApiMainTest::testAddRequestedFieldsCurTimestamp(), ApiMainTest::testAddRequestedFieldsRequestId(), ApiMainTest::testAddRequestedFieldsResponseLangInfo(), MediaWiki\Auth\AuthManagerTest::testAllowsAuthenticationDataChange(), 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\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(), TitleBlacklistPreAuthenticationProvider::testForAccountCreation(), 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\PasswordDomainAuthenticationRequestTest::testGetFieldInfo2(), MediaWiki\Auth\PasswordAuthenticationRequestTest::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\TemporaryPasswordPrimaryAuthenticationProviderTest::testProviderAllowsAuthenticationDataChange(), MediaWiki\Auth\LocalPasswordPrimaryAuthenticationProviderTest::testProviderAllowsAuthenticationDataChange(), 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(), CaptchaPreAuthenticationProviderTest::testTestForAccountCreation(), MediaWiki\Auth\LocalPasswordPrimaryAuthenticationProviderTest::testTestForAccountCreation(), MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProviderTest::testTestForAccountCreation(), CaptchaPreAuthenticationProviderTest::testTestForAuthentication(), MediaWiki\Auth\ThrottlePreAuthenticationProviderTest::testTestForAuthentication(), MediaWikiTest::testTryNormaliseRedirect(), MediaWiki\Auth\ResetPasswordSecondaryAuthenticationProviderTest::testTryReset(), FauxRequestTest::testWasPosted(), MediaWiki::triggerAsyncJobs(), MediaWiki\Auth\ResetPasswordSecondaryAuthenticationProvider::tryReset(), CaptchaPreAuthenticationProvider::verifyCaptcha(), 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 2644 of file hooks.txt.

Referenced by ApiContinuationManager::__construct(), UsersPager::__construct(), ApiMain::__construct(), SkinTemplate::buildContentNavigationUrls(), SkinTemplate::buildNavUrls(), SkinTemplate::buildPersonalUrls(), PageDataRequestHandler::canHandleRequest(), SpecialPage::checkLoginSecurityLevel(), CategoryPage::closeShowCategory(), TOTPSecondaryAuthenticationProvider::continueSecondaryAuthentication(), SpecialReplaceText::createJobsForTextReplacements(), ApiPageSetTest::createPageSetWithRedirect(), Article::delete(), SpecialRedirect::dispatchFile(), SimpleCaptcha::doConfirmEdit(), SwiftFileBackend::doCopyInternal(), SwiftFileBackend::doCreateInternal(), SwiftFileBackend::doDeleteInternal(), SwiftFileBackend::doDescribeInternal(), SpecialImport::doImport(), SwiftFileBackend::doMoveInternal(), SpecialReplaceText::doSpecialReplaceText(), SwiftFileBackend::doStoreInternal(), EditPage::edit(), WikiEditorHooks::editPageAttemptSave(), WikiEditorHooks::editPageAttemptSaveAfter(), WikiEditorHooks::editPageShowEditFormInitial(), SpecialRenameuser::execute(), ApiUpload::execute(), SpecialApiHelp::execute(), SpecialNewFiles::execute(), SpecialProtectedpages::execute(), SpecialProtectedtitles::execute(), SpecialContributions::execute(), SpecialUserLogout::execute(), SpecialExport::execute(), SpecialBlockList::execute(), SpecialInterwiki::execute(), SpecialPrefixindex::execute(), SpecialTags::execute(), LinkSearchPage::execute(), SpecialExpandTemplates::execute(), SpecialAllPages::execute(), SpecialPagesWithProp::execute(), CategoryTreePage::execute(), SpecialWatchlist::execute(), SpecialEditTags::execute(), SpecialImport::execute(), MovePageForm::execute(), UserrightsPage::execute(), SpecialEmailUser::execute(), SpecialSearch::execute(), GuzzleHttpRequest::execute(), SpecialRevisionDelete::execute(), ApiOptionsTest::executeQuery(), SpecialPageExecutor::executeSpecialPage(), SpecialPageTestBase::executeSpecialPage(), HistoryAction::feed(), SpecialWatchlist::fetchOptionsFromRequest(), Action::getActionName(), ReCaptcha::getCaptchaParamsFromRequest(), SimpleCaptcha::getCaptchaParamsFromRequest(), ApiUpload::getChunkResult(), EditPage::getContentObject(), ActionTest::getContext(), MediaWiki\Session\CookieSessionProvider::getCookie(), MWDebug::getDebugInfo(), User::getEditToken(), User::getEditTokenObject(), MediaWiki\Session\SessionManager::getEmptySession(), MediaWiki\Session\SessionManager::getEmptySessionInternal(), HTMLFancyCaptchaFieldTest::getForm(), McrUndoAction::getFormFields(), MediaWiki\Session\SessionManager::getGlobalSession(), ImagePage::getLanguageForRendering(), 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(), MediaWiki\Session\SessionManager::getSessionForRequest(), MediaWiki\Session\SessionManager::getSessionFromInfo(), MediaWiki\Session\ImmutableSessionProviderWithCookie::getSessionIdFromCookie(), MediaWiki\Session\SessionManager::getSessionInfoForRequest(), SpecialBlock::getTargetAndType(), ApiTokens::getTokenTypes(), MediaWiki\Session\CookieSessionProvider::getUserInfoFromCookies(), InstallerOverrides::getWebInstaller(), ApiMain::handleCORS(), AuthManagerSpecialPage::handleReauthBeforeExecute(), PageDataRequestHandler::handleRequest(), RollbackAction::handleRollbackRequest(), EditPage::handleStatus(), ThumbnailRenderJob::hitThumbUrl(), PageDataRequestHandler::httpContentNegotiation(), EditPage::importFormData(), FileCacheBase::incrMissesRecent(), MediaWiki::initializeArticle(), UploadFromFile::initializeFromRequest(), UploadFromStash::initializeFromRequest(), UploadFromUrl::initializeFromRequest(), EditPage::internalAttemptSave(), HTMLButtonField::isBadIE(), HTMLFormField::isSubmitAttempt(), UploadFromStash::isValidRequest(), UploadFromUrl::isValidRequest(), ApiMain::lacksSameOriginSecurity(), LoginSignupSpecialPage::load(), SpecialSearch::load(), AuthManagerSpecialPage::loadAuth(), ProtectionForm::loadData(), HTMLForm::loadData(), HTMLSubmitField::loadDataFromRequest(), HTMLNamespacesMultiselectField::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(), MediaWiki\Session\SessionManager::loadSessionInfoFromStore(), Profiler::logData(), ApiBase::logFeatureUsage(), BotPassword::login(), ApiMain::logRequest(), MediaWiki::main(), DerivativeResourceLoaderContextTest::makeContext(), PageDataRequestHandlerTest::makeOutputPage(), User::matchEditToken(), User::matchEditTokenNoSuffix(), ApiQueryTestBase::merge(), MWDebugTest::newApiRequest(), SpecialPageExecutor::newContext(), User::newFromSession(), MediaWiki\Auth\TemporaryPasswordAuthenticationRequest::newInvalid(), MediaWiki\Session\Session\BotPasswordSessionProvider::newSessionForRequest(), InputBoxHooks::onMediaWikiPerformAction(), InputBoxHooks::onSpecialPageBeforeExecute(), SpecialInterwiki::onSubmit(), SpecialChangeEmail::onSuccess(), RawAction::onView(), HistoryAction::onView(), ImagePage::openShowImage(), MediaWiki::parseTitle(), MediaWiki::performAction(), MediaWiki::performRequest(), MediaWiki\Session\ImmutableSessionProviderWithCookie::persistSession(), MediaWiki\Session\CookieSessionProvider::persistSession(), SpecialSearch::powerSearch(), MediaWiki::preOutputCommit(), SkinTemplate::prepareQuickTemplate(), EditPage::previewOnOpen(), MWRestrictionsTest::provideCheck(), ApiQueryContinueTestBase::query(), MediaWiki\Sparql\SparqlClient::query(), SquidPurgeClient::queuePurge(), MediaWiki\Session\Session\BotPasswordSessionProvider::refreshSessionInfo(), ApiQueryRandom::run(), EditPage::safeUnicodeInput(), ProtectionForm::save(), MediaWiki\Session\SessionBackend::save(), SpecialSearch::saveNamespaces(), ApiUpload::selectUploadModule(), MediaWiki\Session\Session::sessionWithRequest(), User::setCookies(), SpecialPageExecutor::setEditTokenFromUser(), MediaWiki\Session\CookieSessionProvider::setForceHTTPSCookie(), MediaWiki\Session\CookieSessionProvider::setLoggedOutCookie(), SpecialBlock::setParameter(), AuthManagerSpecialPage::setRequest(), MWHttpRequestTestCase::setUp(), ApiMain::setupExternalResponse(), SkinTemplate::setupTemplateForOutput(), SimpleCaptcha::shouldCheck(), Article::showDiffPage(), SpecialInterwiki::showForm(), SpecialExpandTemplates::showHtmlPreview(), Article::showRedirectedFromHeader(), HTMLSubmitField::skipLoadData(), SpecialEditTags::submit(), DummySessionProvider::suggestLoginUsername(), WebRequestTest::testAcceptLang(), ApiOptionsTest::testAnon(), ApiMainTest::testApiErrorFormatterCreation(), MWDebugTest::testAppendDebugInfoToApiResultXmlFormat(), MediaWiki\Sparql\SparqlClientTest::testBadQuery(), MWHttpRequestTestCase::testBasicAuthentication(), MediaWiki\Auth\ConfirmLinkSecondaryAuthenticationProviderTest::testBeginLinkAttempt(), CaptchaTest::testCanSkipCaptchaIPWhitelisted(), MWRestrictionsTest::testCheck(), ApiMainTest::testCheckConditionalRequestHeaders(), 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(), CaptchaPreAuthenticationProviderTest::testGetAuthenticationRequests(), MediaWiki\Session\CookieSessionProviderTest::testGetCookie(), MediaWiki\Session\SessionManagerTest::testGetEmptySession(), MWHttpRequestTestCase::testgetFinalUrl(), MediaWiki\Session\SessionManagerTest::testGetGlobalSession(), WebRequestTest::testGetIP(), WebRequestTest::testGetIpLackOfRemoteAddrThrowAnException(), ImagePageTest::testGetLanguageForRendering(), MWHttpRequestTestCase::testGetResponseHeaders(), MediaWiki\Session\SessionManagerTest::testGetSessionForRequest(), MediaWiki\Session\SessionManagerTest::testGetSessionFromInfo(), MediaWiki\Session\ImmutableSessionProviderWithCookieTest::testGetSessionIdFromCookie(), FauxRequestTest::testGetSetHeader(), MWHttpRequestTestCase::testGetStatus(), PageDataRequestHandlerTest::testHandleRequest(), 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(), HTMLSubmittedValueFieldTest::testSubmit(), HTMLReCaptchaNoCaptchaFieldTest::testSubmit(), MediaWiki\Session\CookieSessionProviderTest::testSuggestLoginUsername(), MediaWiki\Session\SessionBackendTest::testTakeOverGlobalSession(), MediaWiki\Session\SessionBackendTest::testUnpersistOfGlobalSession(), MediaWiki\Session\ImmutableSessionProviderWithCookieTest::testUnpersistSession(), MediaWiki\Session\CookieSessionProviderTest::testUnpersistSession(), UploadStashTest::testValidRequestWithInvalidRequests(), UploadStashTest::testValidRequestWithValidRequests(), HTMLFancyCaptchaFieldTest::testValue(), EditPage::tokenOk(), MediaWiki::tryNormaliseRedirect(), MediaWiki\Session\ImmutableSessionProviderWithCookie::unpersistSession(), MediaWiki\Session\CookieSessionProvider::unpersistSession(), CategoryPage::view(), ImagePage::view(), Article::view(), wfInstallerMain(), and wfLogProfilingData().

◆ $requests

◆ $res

Definition at line 925 of file hooks.txt.

◆ $resourceLoader

◆ $ResourceLoader

& $ResourceLoader

Definition at line 2886 of file hooks.txt.

◆ $response

this hook is for auditing only $response

Definition at line 780 of file hooks.txt.

Referenced by _recaptcha_http_post(), MWHttpRequestTestCase::assertResponseFieldValue(), ApiMain::checkMaxLag(), Block::clearCookie(), EtcdConfigTest::createEtcdResponse(), ApiFormatBaseTest::encodeData(), SpecialLinkAccounts::execute(), SpecialUnlinkAccounts::execute(), RunJobs::execute(), SpecialChangeCredentials::execute(), GuzzleHttpRequest::execute(), LoginSignupSpecialPage::execute(), SpecialPageExecutor::executeSpecialPage(), EtcdConfig::fetchAllFromEtcd(), EtcdConfig::fetchAllFromEtcdServer(), ApiLogin::getAuthenticationResponseLogData(), ReCaptcha::getCaptchaParamsFromRequest(), ApiMainTest::getNonInternalApiMain(), ApiMain::handleCORS(), ApiMain::handleException(), ParserEditTests::handleFailure(), SpecialUnlinkAccounts::handleFormSubmit(), SpecialChangeCredentials::handleFormSubmit(), AuthManagerSpecialPage::handleFormSubmit(), BotPassword::loginHook(), RawAction::onView(), ReCaptcha::passCaptcha(), MediaWiki\Session\ImmutableSessionProviderWithCookie::persistSession(), MediaWiki\Session\CookieSessionProvider::persistSession(), CaptchaPreAuthenticationProvider::postAuthentication(), MediaWiki\Auth\ThrottlePreAuthenticationProvider::postAuthentication(), JobRunner::run(), MediaWiki\Logger\Monolog\KafkaHandler::send(), 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\ResetPasswordSecondaryAuthenticationProviderTest::testGetAuthenticationRequests(), MediaWiki\Auth\ConfirmLinkSecondaryAuthenticationProviderTest::testGetAuthenticationRequests(), MediaWiki\Auth\CheckBlocksSecondaryAuthenticationProviderTest::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(), MediaWiki\Session\ImmutableSessionProviderWithCookie::unpersistSession(), MediaWiki\Session\CookieSessionProvider::unpersistSession(), and wfStreamThumb().

◆ $ret

either a unescaped string or a HtmlArmor object after in associative array form & $ret

Definition at line 1993 of file hooks.txt.

Referenced by MediaWiki\Auth\ConfirmLinkAuthenticationRequest::__set_state(), MediaWiki\Auth\PasswordDomainAuthenticationRequest::__set_state(), CaptchaAuthenticationRequest::__set_state(), MediaWiki\Auth\ButtonAuthenticationRequest::__set_state(), MediaWiki\Auth\AuthenticationRequest::__set_state(), MemcachedClient::_load_items(), ApiFormatJsonTest::addFormatVersion(), Benchmarker::addResult(), ApiResult::applyTransformations(), ArrayUtils::arrayDiffAssocRecursive(), Wikimedia\Rdbms\Database::attemptQuery(), MediaWiki\Auth\AuthManager::autoCreateUser(), ExternalStoreDB::batchFetchBlobs(), ExternalStoreDB::batchFetchFromURLs(), MediaWiki\Auth\AuthManager::beginAccountLink(), MediaWiki\Auth\AuthManager::beginAuthentication(), MediaWiki\Auth\LocalPasswordPrimaryAuthenticationProvider::beginPrimaryAccountCreation(), MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProvider::beginPrimaryAccountCreation(), MediaWiki\Linker\LinkRenderer::buildAElement(), LocalSettingsGenerator::buildMemcachedServerList(), MediaWiki\Special\SpecialPageFactory::capturePath(), ApiQueryRevisionsBase::checkRevDel(), SpecialCiteThisPage::citationTag(), CategoryViewer::columnList(), UploadFromChunks::concatenateChunks(), MediaWiki\Auth\AuthManager::continueAccountCreation(), MediaWiki\Auth\AuthManager::continueAccountLink(), MediaWiki\Auth\AuthManager::continueAuthentication(), LanguageZh::convertForSearchResult(), MediaHandler::convertMetadataVersion(), MagicVariableTest::createProviderUpTo(), Wikimedia\Services\ServiceContainer::createService(), MultiWriteBagOStuff::deleteObjectsExpiringBefore(), ApiBlockTest::doBlock(), DatabaseOracle::doCommit(), Wikimedia\Rdbms\DatabaseMysqli::doQuery(), Wikimedia\Rdbms\DatabaseMysqlBase::doSelectDomain(), DatabaseInstaller::doUpgrade(), ApiLoginTest::doUserLogin(), MultiWriteBagOStuff::doWrite(), Wikimedia\Rdbms\DatabasePostgres::duplicateTableStructure(), ApiFormatTestBase::encodeData(), ApiFormatBaseTest::encodeData(), ApiManageTags::execute(), HHVMMakeRepo::execute(), ApiTag::execute(), ApiQueryAuthManagerInfo::execute(), DeleteOldFancyCaptchas::execute(), ApiStashEdit::execute(), GenerateFancyCaptchas::execute(), FindHooks::execute(), ApiBase::extractRequestParams(), ApiRevisionDelete::extractStatusInfo(), Wikimedia\Rdbms\MssqlBlob::fetch(), ExternalStoreDB::fetchBlob(), ExternalStoreDB::fetchFromURL(), ORAResult::fetchObject(), ORAResult::fetchRow(), TestResourceLoaderWikiModule::fetchTitleInfo(), ForeignAPIRepo::findBySha1(), ApiAuthManagerHelper::formatAuthenticationResponse(), ApiErrorFormatter_BackCompat::formatException(), ApiAuthManagerHelper::formatFields(), ApiParamInfo::formatHelpMessages(), ProtectLogFormatter::formatParametersForApi(), RightsLogFormatter::formatParametersForApi(), BlockLogFormatter::formatParametersForApi(), DeleteLogFormatter::formatParametersForApi(), SpecialPasswordPolicies::formatPolicies(), ApiErrorFormatter::formatRawMessage(), ApiAuthManagerHelper::formatRequests(), SpecialPagesWithProp::formatResult(), DeletedContribsPager::formatRevisionRow(), DeletedContribsPager::formatRow(), SpecialNewpages::formatRow(), ContribsPager::formatRow(), GetConfiguration::formatVarDump(), CoreParserFunctions::gender(), MediaWiki\Preferences\DefaultPreferencesFactory::generateSkinOptions(), CachedBagOStuff::get(), ApiFormatPhp::getAllowedParams(), ApiResetPassword::getAllowedParams(), ApiAMCreateAccount::getAllowedParams(), ApiFormatJson::getAllowedParams(), ApiFeedRecentChanges::getAllowedParams(), ApiQueryExtLinksUsage::getAllowedParams(), ApiFeedContributions::getAllowedParams(), ApiFeedWatchlist::getAllowedParams(), ApiQueryAllPages::getAllowedParams(), ApiQueryAllRevisions::getAllowedParams(), ApiQueryCategoryMembers::getAllowedParams(), ApiQueryAllImages::getAllowedParams(), ApiQueryBacklinksprop::getAllowedParams(), ApiFormatBase::getAllowedParams(), ApiQueryLogEvents::getAllowedParams(), ApiQueryAllDeletedRevisions::getAllowedParams(), ApiQueryRevisions::getAllowedParams(), ApiComparePages::getAllowedParams(), RevDelArchivedFileItem::getApiData(), RevDelLogItem::getApiData(), RevDelRevisionItem::getApiData(), RevDelFileItem::getApiData(), Revision\RevisionStore::getArchiveQueryInfo(), HTMLDateTimeField::getAttributes(), HTMLFormField::getAttributes(), ApiLogin::getAuthenticationResponseLogData(), ApiQueryUserInfo::getCentralUserInfo(), RevisionDeleter::getChanges(), MediaWiki\Preferences\DefaultPreferencesFactory::getDateOptions(), HTMLFormFieldCloner::getDefault(), MediaWiki\Session\TestUtils::getDummySessionBackend(), ApiResetPassword::getExamplesMessages(), MediaWiki\Auth\PasswordAuthenticationRequest::getFieldInfo(), MediaWiki\Auth\UserDataAuthenticationRequest::getFieldInfo(), MediaWiki\Auth\PasswordDomainAuthenticationRequest::getFieldInfo(), McrUndoAction::getFormFields(), ApiHelp::getHelpInternal(), MWDebug::getHTMLDebugLog(), MediaWiki\Preferences\DefaultPreferencesFactory::getImageSizes(), FileRepo::getInfo(), HTMLAutoCompleteSelectField::getInputHTML(), ActorMigration::getInsertValues(), ActorMigration::getInsertValuesWithTempTable(), MediaWiki\Auth\PasswordAuthenticationRequestTest::getInstance(), MediaWiki\Auth\PasswordDomainAuthenticationRequestTest::getInstance(), MediaWiki\Auth\TemporaryPasswordAuthenticationRequestTest::getInstance(), TablePager::getLimitSelectList(), Title::getLinkURL(), SpecialVersion::getMediaWikiCredits(), ApiParamInfo::getModuleInfo(), ApiBase::getParameter(), ApiAuthManagerHelper::getPreservedRequest(), OldLocalFile::getQueryInfo(), LocalFile::getQueryInfo(), WikiPage::getQueryInfo(), Revision\RevisionStore::getQueryInfo(), User::getQueryInfo(), ReplaceAll::getReplacement(), ApiResult::getResultData(), Revision\RevisionStore::getSlotsQueryInfo(), ApiAuthManagerHelper::getStandardParams(), TablePager::getStartBody(), ReplaceAll::getTarget(), MediaWiki\Preferences\DefaultPreferencesFactory::getThumbSizes(), ParserOutput::getTimes(), User::getToken(), ApiMain::getVal(), SpecialVersion::getWgHooks(), SiteConfiguration::getWikiParams(), MWGrants::grantNames(), UserrightsPage::groupCheckboxes(), Wikimedia\Rdbms\LBFactory::hasMasterChanges(), Wikimedia\Rdbms\LBFactory::hasOrMadeRecentMasterChanges(), MediaWiki\Extensions\ParserFunctions\ParserFunctions::ifexpr(), Wikimedia\Rdbms\DatabaseMssql::insert(), Wikimedia\Rdbms\LBFactory::laggedReplicaUsed(), HTMLFormFieldCloner::loadDataFromRequest(), LogEventsList::logLine(), HTMLFormField::lookupOptionsKeys(), MediaWiki\Linker\LinkRenderer::makeBrokenLink(), ResourceLoaderClientHtml::makeContext(), Linker::makeMediaLinkFile(), MediaWiki\Linker\LinkRenderer::makePreloadedLink(), Linker::makeSelfLinkObj(), UserPasswordPolicy::maxOfPolicies(), MediaWiki\Linker\LinkRenderer::mergeAttribs(), ExternalStoreDB::mergeBatchResult(), SiteConfiguration::mergeParams(), MediaWiki\Auth\AuthenticationResponse::newAbstain(), ParserOptions::newCanonical(), MediaWiki\Auth\AuthenticationResponse::newFail(), MediaWiki\Auth\AuthenticationResponse::newPass(), MediaWiki\Auth\AuthenticationResponse::newRedirect(), MediaWiki\Auth\AuthenticationResponse::newRestart(), MediaWiki\Auth\AuthenticationResponse::newUI(), MediaWiki\Site\MediaWikiPageNameNormalizer::normalizePageName(), Linker::normalizeSubpageLink(), File::normalizeTitle(), MediaWiki\Auth\AuthManager::normalizeUsername(), CoreParserFunctions::nse(), Wikimedia\Rdbms\DatabaseMssql::numRows(), ForeignAPIFile::parseMetadata(), MediaWiki::parseTitle(), ApiResult::path(), WikitextContent::preSaveTransform(), MWRestrictionsTest::provideCheck(), MediaWikiServicesTest::provideGetService(), LocalIdLookupTest::provideIsAttachedShared(), ResourceLoaderTest::provideMakeModuleResponseConcat(), MediaWiki\Auth\AuthManager::providerArrayFromSpecs(), Wikimedia\Rdbms\Database::query(), Installer::readExtension(), XmlTypeCheck::readNext(), EnhancedChangesList::recentChangesLine(), KkConverter::regsConverter(), ApiResult::removeValue(), CategoryFinder::run(), MemcachedClient::run_command(), MediaWiki\Linker\LinkRenderer::runBeginHook(), MediaWiki\Linker\LinkRenderer::runLegacyBeginHook(), MysqlMaintenance::runMysql(), DatabaseUpdater::runUpdates(), Wikimedia\Rdbms\DatabaseMssql::select(), SpecialEmailUser::sendEmailForm(), UserMailer::sendInternal(), Cookie::serializeToHttpRequest(), WebRequest::setVal(), SpecialCiteThisPage::showCitations(), UserOptionsMaintenance::showUsageStats(), ApiErrorFormatter::stripMarkup(), Wikimedia\Rdbms\Database::tableNamesWithIndexClauseOrJOIN(), MediaWiki\Auth\LocalPasswordPrimaryAuthenticationProviderTest::testAccountCreation(), MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProviderTest::testAccountCreation(), MediaWiki\Auth\AuthManagerTest::testAccountCreation(), MediaWiki\Auth\AuthManagerTest::testAccountCreationLogging(), MediaWiki\Auth\AuthManagerTest::testAccountLink(), MWRestrictionsTest::testArray(), MediaWiki\Auth\LocalPasswordPrimaryAuthenticationProviderTest::testAuthentication(), MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProviderTest::testAuthentication(), MediaWiki\Auth\AuthManagerTest::testAuthentication(), MediaWiki\Auth\AuthManagerTest::testAutoAccountCreation(), MediaWiki\Auth\AuthManagerTest::testAutoCreateFailOnLogin(), MediaWiki\Auth\AuthManagerTest::testAutoCreateOnLogin(), ApiLoginTest::testBadPass(), ApiLoginTest::testBadToken(), MediaWiki\Auth\AuthenticationRequestTest::testBasics(), MediaWiki\Auth\AuthManagerTest::testBeginAccountCreation(), MediaWiki\Auth\AuthManagerTest::testBeginAccountLink(), MediaWiki\Auth\AuthManagerTest::testBeginAuthentication(), MediaWiki\Auth\CheckBlocksSecondaryAuthenticationProviderTest::testBeginSecondaryAuthentication(), ApiLoginTest::testBotPassword(), ApiLoginTest::testBotPasswordLocked(), ApiLoginTest::testBotPasswordThrottled(), WANObjectCacheTest::testBusyValue(), ParserMethodsTest::testCallParserFunction(), ApiMainTest::testCheckConditionalRequestHeaders(), MediaWiki\Auth\CreatedAccountAuthenticationRequestTest::testConstructor(), MediaWiki\Auth\AuthenticationResponseTest::testConstructors(), MediaWiki\Auth\AuthManagerTest::testContinueAccountCreation(), MediaWiki\Auth\AuthManagerTest::testContinueAccountLink(), MediaWiki\Auth\AuthManagerTest::testCreateFromLogin(), ApiFormatPhpTest::testCrossDomainMangling(), ApiLoginTest::testDeprecatedUserLogin(), MediaWiki\Auth\TemporaryPasswordAuthenticationRequestTest::testDescribeCredentials(), MediaWiki\Auth\PasswordAuthenticationRequestTest::testDescribeCredentials(), MediaWiki\Auth\PasswordDomainAuthenticationRequestTest::testDescribeCredentials(), ApiMainTest::testExceptionErrors(), ApiLoginTest::testExtendedDescription(), MediaWiki\Auth\AbstractPasswordPrimaryAuthenticationProviderTest::testFailResponse(), ApiFormatBaseTest::testFilenameEncoding(), MediaWiki\Auth\LocalPasswordPrimaryAuthenticationProvider::testForAccountCreation(), MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProvider::testForAccountCreation(), MediaWiki\Auth\AuthManagerTest::testGetAuthenticationRequests(), MediaWiki\Auth\AuthManagerTest::testGetAuthenticationRequestsRequired(), ApiLoginTest::testGoodPass(), MWRestrictionsTest::testJson(), MediaWiki\Auth\AuthenticationRequestTestCase::testLoadFromSubmission(), MediaWiki\Auth\AuthenticationRequestTest::testLoadFromSubmission(), DifferenceEngineTest::testLoadRevisionData(), WANObjectCacheTest::testLockTSE(), WANObjectCacheTest::testLockTSESlow(), MediaWiki\Session\SessionTest::testMethods(), MWRestrictionsTest::testNewDefault(), MediaWiki\Auth\TemporaryPasswordAuthenticationRequestTest::testNewInvalid(), MediaWiki\Auth\TemporaryPasswordAuthenticationRequestTest::testNewRandom(), ApiLoginTest::testNoName(), ApiLoginTest::testNoSameOriginSecurity(), MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProviderTest::testProviderChangeAuthenticationData(), MediaWiki\Auth\LocalPasswordPrimaryAuthenticationProviderTest::testProviderChangeAuthenticationData(), MediaWiki\Auth\CheckBlocksSecondaryAuthenticationProviderTest::testRangeBlock(), WANObjectCacheTest::testReap_fail(), MediaWiki\Auth\LocalPasswordPrimaryAuthenticationProviderTest::testSetPasswordResetFlag(), MediaWiki\Auth\AbstractPasswordPrimaryAuthenticationProviderTest::testSetPasswordResetFlag(), MediaWikiTest::testTryNormaliseRedirect(), ApiLoginTest::testUnsupportedAuthResponseType(), JpegHandler::transformImageMagick(), SrConverter::translate(), CrhConverter::translate(), KkConverter::translate(), Language::truncate_skip(), Language::truncateHtml(), SqlBagOStuff::unserialize(), WebRequest::unsetVal(), ApiResult::unsetValue(), StripState::unstripType(), WikiPage::updateIfNewerOn(), ReassignEdits::userSpecification(), wfCgiToArray(), wfPercent(), and wfTimestamp().

◆ $rev

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

Definition at line 1769 of file hooks.txt.

Referenced by Article::applyContentOverride(), RevisionDbTestBase::assertRevEquals(), MediaWiki\Tests\Revision\McrReadNewRevisionStoreDbTest::assertRevisionExistsInDatabase(), MediaWiki\Tests\Revision\McrRevisionStoreDbTest::assertRevisionExistsInDatabase(), MediaWiki\Tests\Revision\PreMcrRevisionStoreDbTest::assertRevisionExistsInDatabase(), MediaWiki\Tests\Revision\McrWriteBothRevisionStoreDbTest::assertRevisionExistsInDatabase(), MediaWiki\Tests\Revision\RevisionStoreDbTestBase::assertRevisionExistsInDatabase(), MediaWiki\Tests\Revision\RevisionStoreDbTestBase::assertRevisionRecordMatchesRevision(), DummyLinker::buildRollbackLink(), Linker::buildRollbackLink(), Cleanup::cleanupArticle(), CleanupSpam::cleanupArticle(), WikiPage::commitRollback(), MediaWiki\Tests\Storage\DerivedPageDataUpdaterTest::createRevision(), MediaWiki\Tests\Storage\PageUpdaterTest::createRevision(), MediaWiki\Tests\Revision\RevisionStoreDbTestBase::createRevisionStoreCacheRecord(), HistoryPager::curLink(), DifferenceEngine::deletedLink(), HistoryPager::diffButtons(), SpecialUndelete::diffHeader(), PopulateRevisionLength::doDBUpdates(), ApiQueryWatchlistIntegrationTest::doPatrolledPageEdit(), PoolWorkArticleView::doWork(), ApiExpandTemplates::execute(), ApiPatrol::execute(), ApiSetNotificationTimestamp::execute(), CheckBadRedirects::execute(), ApiQueryDeletedrevs::execute(), GetTextMaint::execute(), DumpRev::execute(), ApiParse::execute(), ApiComparePages::execute(), ImportTextFiles::execute(), HistoryAction::feedItem(), MediaWikiGadgetsDefinitionRepo::fetchStructuredList(), SpecialRecentChanges::filterByCategories(), FeedUtils::formatDiffRow(), SpecialMergeHistory::formatRevisionRow(), DeletedContribsPager::formatRevisionRow(), SpecialUndelete::formatRevisionRow(), DeletedContribsPager::formatRow(), SpecialNewpages::formatRow(), ContribsPager::formatRow(), DummyLinker::generateRollback(), Linker::generateRollback(), RevDelRevisionItem::getApiData(), ContentHandler::getAutoDeleteReason(), Revision\RevisionStore::getBaseRevisionRow(), CoreParserFunctions::getCachedRevisionObject(), CategoryMembershipChangeJob::getCategoriesAtRev(), WikiPage::getContentModel(), EditPage::getCurrentContent(), WikiPage::getDeletionUpdates(), ApiComparePages::getDiffRevision(), Title::getEarliestRevTime(), GadgetDefinitionNamespaceRepo::getGadget(), PageArchive::getLastRevisionText(), User::getNewMessageLinks(), Revision\RevisionStore::getNextRevision(), WikiPage::getOldestRevision(), ArticleViewTest::getPage(), SpecialUndelete::getPageLink(), ApiParse::getParsedContent(), DifferenceEngine::getParserOutput(), Revision\RevisionStore::getPreviousRevision(), Revision\RevisionStore::getPreviousRevisionId(), RawAction::getRawText(), Revision\RevisionStore::getRecentChange(), Revision\RevisionRenderer::getRenderedRevision(), DummyLinker::getRevDeleteLink(), Linker::getRevDeleteLink(), ApiComparePages::getRevisionById(), Revision\RevisionStore::getRevisionByPageId(), Revision\RevisionStore::getRevisionByTitle(), DifferenceEngine::getRevisionHeader(), MediaWiki\Tests\Revision\RevisionStoreDbTestBase::getRevisionRecordFromDetailsArray(), Revision::getRevisionText(), DummyLinker::getRollbackEditCount(), Linker::getRollbackEditCount(), MediaWiki\Storage\DerivedPageDataUpdater::grabCurrentRevision(), ApiComparePages::guessModel(), ApiComparePages::guessTitle(), BackupReader::handleLogItem(), DumpRenderer::handleRevision(), DumpIterator::handleRevision(), BackupReader::handleRevision(), RollbackAction::handleRollbackRequest(), FixDefaultJsonContentPages::handleRow(), HistoryPager::historyLine(), Revision\RevisionStore::insertIpChangesRow(), Revision\RevisionStore::insertRevisionInternal(), Revision\RevisionStore::insertRevisionOn(), Revision\RevisionStore::insertRevisionRowOn(), ChangesList::insertRollback(), MovePage::isValidMoveTarget(), Title::isValidMoveTarget(), MessageCache::loadFromDB(), DifferenceEngine::loadRevisionData(), Revision\RevisionStore::loadRevisionFromConds(), SimpleCaptcha::loadText(), PopulateArchiveRevId::makeDummyRevisionRow(), MediaWiki\Storage\PageUpdater::makeNewRevision(), MediaWiki\Tests\Storage\DerivedPageDataUpdaterTest::makeRevision(), RevisionDbTestBase::makeRevisionWithProps(), Revision\MutableRevisionRecord::newFromParentRevision(), Revision\RevisionStore::newRevisionFromConds(), Revision\RevisionStore::newRevisionFromRow(), RevisionDbTestBase::newTestRevision(), CoreParserFunctions::pagesize(), MediaWiki::parseTitle(), RebuildTextIndex::populateSearchIndex(), BaseDump::prefetch(), MediaWiki\Storage\DerivedPageDataUpdater::prepareUpdate(), PreprocessDump::processRevision(), CompareParsers::processRevision(), SearchDump::processRevision(), RevisionTest::provideConstructFromRow(), PoolWorkArticleViewTest::provideMagicWords(), MediaWiki\Tests\Storage\PageUpdaterTest::provideMagicWords(), MediaWiki\Tests\Revision\RevisionStoreDbTestBase::provideNonHistoryRevision(), MediaWiki\Tests\Revision\MutableRevisionRecordTest::provideNotReadyForInsertion(), LocalFile::recordUpload2(), WikiPage::replaceSectionAtRev(), WikiPage::replaceSectionContent(), DummyLinker::revComment(), Linker::revComment(), ChangesList::revDateLink(), Diff::reverse(), CoreParserFunctions::revisionday(), CoreParserFunctions::revisionday2(), MediaWikiTestCase::revisionDelete(), DifferenceEngine::revisionDeleteLink(), CoreParserFunctions::revisionid(), MediaWiki\Storage\DerivedPageDataUpdater::revisionIsRedirect(), CoreParserFunctions::revisionmonth(), CoreParserFunctions::revisionmonth1(), CoreParserFunctions::revisiontimestamp(), MediaWiki\Tests\Revision\PreMcrRevisionStoreDbTest::revisionToRow(), MediaWiki\Tests\Revision\NoContentModelRevisionStoreDbTest::revisionToRow(), MediaWiki\Tests\Revision\McrWriteBothRevisionStoreDbTest::revisionToRow(), MediaWiki\Tests\Revision\RevisionStoreDbTestBase::revisionToRow(), CoreParserFunctions::revisionuser(), CoreParserFunctions::revisionyear(), HistoryPager::revLink(), DummyLinker::revUserLink(), Linker::revUserLink(), DummyLinker::revUserTools(), Linker::revUserTools(), ApiQueryDeletedRevisions::run(), ApiQueryAllRevisions::run(), ApiQueryAllDeletedRevisions::run(), ApiQueryRevisions::run(), PageArchiveTestBase::setUp(), ApiComparePages::setVals(), Article::showDiffPage(), SpecialBookSources::showList(), McrUndoAction::showPreview(), SpecialUndelete::showRevision(), RevDelRevisionList::suggestTarget(), ArticleViewTest::testArticleRevisionViewCustomHook(), MediaWiki\Tests\Revision\RevisionStoreCacheRecordTest::testCallback(), RevisionTest::testConstructFromArray(), RevisionTest::testConstructFromArray_userSetAsExpected(), RevisionTest::testConstructFromArrayWithBadPageId(), RevisionTest::testConstructFromEmptyArray(), RevisionTest::testConstructFromRow(), RevisionTest::testConstructFromRowWithBadPageId(), MediaWiki\Tests\Storage\PageUpdaterTest::testCreatePage(), WikiPageDbTestBase::testDoEditContent(), MediaWiki\Tests\Storage\DerivedPageDataUpdaterTest::testDoParserCacheUpdate(), MediaWiki\Tests\Storage\DerivedPageDataUpdaterTest::testDoUpdates(), PoolWorkArticleViewTest::testDoWorkWithExplicitRevision(), ApiStashEditTest::testExistingPage(), PageArchiveTestBase::testGetArchivedRevision(), MediaWiki\Tests\Storage\DerivedPageDataUpdaterTest::testGetCanonicalParserOptions(), MediaWiki\Tests\Revision::testGetComment_audience(), RevisionDbTestBase::testGetComment_notDeleted(), MediaWiki\Tests\Revision::testGetContent(), RevisionDbTestBase::testGetContent(), RevisionTest::testGetContent(), MediaWiki\Tests\Revision::testGetContent_audience(), RevisionDbTestBase::testGetContent_failure(), RevisionTest::testGetContent_failure(), RevisionDbTestBase::testGetContentClone(), RevisionDbTestBase::testGetContentFormat(), RevisionDbTestBase::testGetContentHandler(), RevisionDbTestBase::testGetContentModel(), RevisionDbTestBase::testGetContentUncloned(), RevisionTest::testGetId(), MediaWiki\Tests\Revision\RevisionStoreDbTestBase::testGetKnownCurrentRevision(), MediaWiki\Tests\Revision\RevisionStoreDbTestBase::testGetKnownCurrentRevision_revDelete(), MediaWiki\Tests\Revision\RevisionStoreDbTestBase::testGetKnownCurrentRevision_userNameChange(), MediaWiki\Tests\Revision\RevisionStoreDbTestBase::testGetNextRevision_bad(), RevisionDbTestBase::testGetPage(), RevisionTest::testGetParentId(), RevisionDbTestBase::testGetParentLengths_multipleRevIds(), RevisionDbTestBase::testGetParentLengths_oneRevId(), MediaWiki\Tests\Storage\DerivedPageDataUpdaterTest::testGetPreparedEditAfterPrepareUpdate(), PageArchiveTestBase::testGetPreviousRevision(), MediaWiki\Tests\Revision\RevisionStoreDbTestBase::testGetPreviousRevision_bad(), MediaWiki\Tests\Revision\RevisionStoreDbTestBase::testGetRcIdIfUnpatrolled_returnsRecentChangesId(), MediaWiki\Tests\Revision\RevisionStoreDbTestBase::testGetRcIdIfUnpatrolled_returnsZeroIfPatrolled(), RevisionDbTestBase::testGetRecentChange(), MediaWiki\Tests\Revision\RevisionStoreDbTestBase::testGetRecentChange(), MediaWiki\Tests\Revision\RevisionRendererTest::testGetRenderedRevision_current(), MediaWiki\Tests\Revision\RevisionRendererTest::testGetRenderedRevision_known(), MediaWiki\Tests\Revision\RevisionRendererTest::testGetRenderedRevision_master(), MediaWiki\Tests\Revision\RevisionRendererTest::testGetRenderedRevision_multi(), 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(), PageArchiveTestBase::testGetRevision(), WikiPageDbTestBase::testGetRevision(), MediaWiki\Tests\Revision\RevisionStoreDbTestBase::testGetRevisionById(), MediaWiki\Tests\Revision\RevisionStoreDbTestBase::testGetRevisionByPageId(), MediaWiki\Tests\Revision\RevisionStoreDbTestBase::testGetRevisionByTimestamp(), MediaWiki\Tests\Revision\RevisionStoreDbTestBase::testGetRevisionByTitle(), 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(), RevisionDbTestBase::testGetRevisionText(), RevisionTest::testGetSha1(), RevisionDbTestBase::testGetSha1(), RevisionTest::testGetSha1_failure(), RevisionTest::testGetSize(), RevisionDbTestBase::testGetSize(), RevisionTest::testGetSize_failure(), MediaWiki\Tests\Revision::testGetSlot(), MediaWiki\Tests\Revision::testGetSlot_audience(), MediaWiki\Tests\Revision\RevisionStoreRecordTest::testGetSlot_audience_latest(), RevisionDbTestBase::testGetTextId(), RevisionDbTestBase::testGetTimestamp(), MediaWiki\Tests\Revision\RevisionStoreDbTestBase::testGetTimestampFromId_found(), MediaWiki\Tests\Revision\RevisionStoreDbTestBase::testGetTimestampFromId_notFound(), RevisionDbTestBase::testGetTitle_fromRevisionWhichWillLoadTheTitle(), MediaWiki\Tests\Revision::testGetUser_audience(), RevisionDbTestBase::testGetUserAndText(), RevisionDbTestBase::testGetVisibility_nothingDeleted(), MediaWiki\Tests\Revision::testHasSlot(), ApiRevisionDeleteTest::testHidingRevisions(), RevisionDbTestBase::testInsertOn_exceptionOnIncomplete(), RevisionDbTestBase::testInsertOn_success(), MediaWiki\Tests\Revision\McrWriteBothRevisionStoreDbTest::testInsertRevisionFromArchiveRow_unmigratedArchiveRow(), MediaWiki\Tests\Revision\RevisionStoreDbTestBase::testInsertRevisionOn_failures(), MediaWiki\Tests\Revision\RevisionStoreDbTestBase::testInsertRevisionOn_successes(), MediaWiki\Tests\Revision\McrRevisionStoreDbTest::testInsertRevisionOn_T202032(), MediaWiki\Tests\Revision\RevisionStoreRecordTest::testIsCurrent(), MediaWiki\Tests\Revision::testIsDeleted(), RevisionDbTestBase::testIsDeleted_nothingDeleted(), RevisionDbTestBase::testIsMinor_false(), RevisionDbTestBase::testIsMinor_true(), MediaWiki\Tests\Revision::testIsReadyForInsertion(), RevisionDbTestBase::testIsUnpatrolled_returnsRecentChangesId(), RevisionDbTestBase::testIsUnpatrolled_returnsZeroIfPatrolled(), RevisionDbTestBase::testLoadFromId(), MediaWiki\Tests\Revision\RevisionStoreDbTestBase::testLoadRevisionFromId(), MediaWiki\Tests\Revision\RevisionStoreDbTestBase::testLoadRevisionFromPageId(), MediaWiki\Tests\Revision\RevisionStoreDbTestBase::testLoadRevisionFromTitle(), PoolWorkArticleViewTest::testMagicWords(), MediaWiki\Tests\Storage\PageUpdaterTest::testMagicWords(), RevisionDbTestBase::testNewFromArchiveRow(), RevisionDbTestBase::testNewFromArchiveRowOverrides(), RevisionDbTestBase::testNewFromId(), RevisionDbTestBase::testNewFromPageId(), RevisionDbTestBase::testNewFromPageIdWithLatestId(), RevisionDbTestBase::testNewFromPageIdWithNotLatestId(), RevisionDbTestBase::testNewFromRow(), RevisionDbTestBase::testNewFromTitle_withBadId(), RevisionDbTestBase::testNewFromTitle_withId(), RevisionDbTestBase::testNewFromTitle_withoutId(), RevisionDbTestBase::testNewKnownCurrent(), RevisionDbTestBase::testNewKnownCurrent_withPageId(), RevisionDbTestBase::testNewNullRevision(), RevisionDbTestBase::testNewNullRevision_badPage(), MediaWiki\Tests\Revision\RevisionStoreDbTestBase::testNewRevisionFromRow_anonEdit(), MediaWiki\Tests\Revision\RevisionStoreDbTestBase::testNewRevisionFromRow_anonEdit_legacyEncoding(), MediaWiki\Tests\Revision\RevisionStoreDbTestBase::testNewRevisionFromRow_getQueryInfo(), MediaWiki\Tests\Revision\RevisionStoreDbTestBase::testNewRevisionFromRow_revDelete(), MediaWiki\Tests\Revision\RevisionStoreDbTestBase::testNewRevisionFromRow_userEdit(), MediaWiki\Tests\Revision\RevisionStoreDbTestBase::testNewRevisionFromRow_userNameChange(), MediaWiki\Tests\Revision\RenderedRevisionTest::testNoHtml(), MediaWiki\Tests\Revision\MutableRevisionRecordTest::testNotReadyForInsertion(), ApiStashEditTest::testPageWithNoRevisions(), WikiPageDbTestBase::testPrepareContentForEdit(), MediaWiki\Tests\Storage\DerivedPageDataUpdaterTest::testPrepareContentInherit(), MediaWiki\Tests\Storage\DerivedPageDataUpdaterTest::testPrepareUpdateOutputReset(), MediaWiki\Tests\Storage\DerivedPageDataUpdaterTest::testPrepareUpdateReusesParserOutput(), MediaWiki\Tests\Revision::testSerialization_fails(), RevisionTest::testSetId(), MediaWiki\Tests\Storage\PageUpdaterTest::testSetRcPatrolStatus(), MediaWiki\Tests\Revision\RenderedRevisionTest::testSetRevisionParserOutput(), MediaWiki\Tests\Storage\PageUpdaterTest::testSetUseAutomaticEditSummaries(), MediaWiki\Tests\Storage\PageUpdaterTest::testSetUsePageCreationLog(), RevisionTest::testSetUserIdAndName(), RevisionDbTestBase::testSimpleContentGetters(), MediaWiki\Tests\Storage\PageUpdaterTest::testUpdatePage(), MediaWiki\Tests\Revision\RenderedRevisionTest::testUpdateRevision(), ArticleViewTest::testViewNonText(), ContribsPager::tryToCreateValidRevision(), Revision\RenderedRevision::updateRevision(), Maintenance::updateSearchIndexForPage(), ChangeTags::updateTagsWithChecks(), PopulateRevisionSha1::upgradeLegacyArchiveRow(), PopulateRevisionLength::upgradeRow(), PopulateRevisionSha1::upgradeRow(), Article::view(), MediaWiki\Storage\DerivedPageDataUpdater::wasRedirect(), DumpFilter::writeLogItem(), ExportProgressFilter::writeRevision(), DumpMultiWriter::writeRevision(), DumpFilter::writeRevision(), and XmlDumpWriter::writeRevision().

◆ $revert

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

◆ $rollback

also included in $newHeader $rollback

Definition at line 1269 of file hooks.txt.

Referenced by DifferenceEngine::showDiffPage().

◆ $rowAugmentors

the value to return A Title object or null for latest all implement SearchIndexField must implement ResultSetAugmentor& $rowAugmentors

◆ $rows

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

Definition at line 2644 of file hooks.txt.

Referenced by Wikimedia\Rdbms\FakeResultWrapper::__construct(), MigrateActors::addActorsForRows(), WatchedItemStore::addWatchBatchForUser(), JsonContent::arrayTable(), ChangesFeed::buildItems(), Xml::buildTable(), BatchRowUpdateTest::consecutivelyReturnFromSelect(), SqlBagOStuff::deleteObjectsExpiringBefore(), DeleteAutoPatrolLogs::deleteRows(), JobQueueDB::doBatchPushInternal(), FixDefaultJsonContentPages::doDBUpdates(), PopulateIpChanges::doDBUpdates(), SpecialRecentChanges::doMainQuery(), MysqlUpdater::doPageRandomUpdate(), RevDelRevisionList::doQuery(), MysqlUpdater::doSchemaRestructuring(), Wikimedia\Rdbms\DatabasePostgres::estimateRowCount(), Wikimedia\Rdbms\DatabaseMssql::estimateRowCount(), Wikimedia\Rdbms\DatabaseMysqlBase::estimateRowCount(), RemoveInvalidEmails::execute(), PurgeModuleDeps::execute(), ApiFeedRecentChanges::execute(), CleanupRemovedModules::execute(), PurgeChangedPages::execute(), DeleteAutoPatrolLogs::execute(), ChangesFeed::execute(), BatchRowUpdate::execute(), ChangesListSpecialPage::execute(), SpecialRecentChanges::filterByCategories(), HTMLCheckMatrix::filterDataForSubmit(), LCStoreDB::finishWrite(), ChangesFeed::generateFeed(), BatchRowUpdateTest::genSelectResult(), Block::getBlocksForIPList(), HTMLCheckMatrix::getInputHTML(), MediaWiki\Preferences\DefaultPreferencesFactory::getOptionFromUser(), User::getOptionKinds(), WatchedItemStore::getTitleDbKeysGroupedByNamespace(), ImagePage::imageLinks(), ChangesList::initChangesListRows(), MediaWiki\Block\BlockRestrictionStore::insert(), Wikimedia\Rdbms\DatabasePostgres::insert(), ManualLogEntry::insert(), SqlBagOStuff::insertMulti(), Title::loadRestrictions(), Title::loadRestrictionsFromRows(), MigrateActors::migrate(), MigrateActors::migrateLogSearch(), MigrateActors::migrateToTemp(), SpecialReplaceText::namespaceTables(), DatabaseTestHelper::nativeReplace(), Wikimedia\Rdbms\Database::nativeReplace(), Wikimedia\Rdbms\Database::nonNativeInsertSelect(), JsonContent::objectTable(), SpecialInterwiki::onSubmit(), SpecialRecentChanges::outputChangesList(), SpecialWatchlist::outputChangesList(), CheckLanguageCLI::outputWiki(), PurgeChangedPages::pageableSortedRows(), PopulateContentTables::populateContentTablesForRowBatch(), DatabaseInstaller::populateInterwikiTable(), PopulateContentModel::populatePage(), PopulateContentModel::populateRevisionOrArchive(), PopulateContentTables::populateTable(), MediaWiki\Widget\Search\SearchFormWidget::powerSearchBox(), RecentChangesUpdateJob::purgeExpiredRows(), WatchedItemStore::removeWatchBatchForUser(), Wikimedia\Rdbms\DatabaseMysqlBase::replace(), Wikimedia\Rdbms\DatabaseSqlite::replace(), Wikimedia\Rdbms\Database::replace(), ApiQueryCategoryMembers::run(), UserRightsProxy::saveSettings(), WatchedItemStore::setNotificationTimestampsForUser(), PagePropsTest::setProperties(), SpecialWhatLinksHere::showIndirectLinks(), MwSql::sqlPrintResult(), MediaWiki\Auth\AuthManagerTest::testAccountCreationLogging(), MediaWiki\Auth\AuthManagerTest::testAutoAccountCreation(), DatabaseSQLTest::testInsertSelectBatching(), BatchRowUpdateTest::testReaderBasicIterate(), Xml::textarea(), Wikimedia\Rdbms\DatabaseMysqlBase::upsert(), Wikimedia\Rdbms\Database::upsert(), HTMLCheckMatrix::validate(), and ChangesListSpecialPage::webOutput().

◆ $section

usually copyright or history_copyright This message must be in HTML not wikitext if the section is included from a template $section

Definition at line 3061 of file hooks.txt.

Referenced by JobQueueFederated::__construct(), HTMLForm::__construct(), HTMLForm::addFooterText(), CategoryViewer::addFragmentToTitle(), HTMLForm::addHeaderText(), ParserOutput::addHeadItem(), ApiQuerySearch::addInterwikiResults(), CoreParserFunctions::anchorencode(), MWLBFactory::applyDefaultConfig(), SkinTemplate::buildContentNavigationUrls(), FileBackendGroup::config(), HTMLForm::displaySection(), SimpleCaptcha::doConfirmEdit(), Skin::doEditSectionLink(), IndexPager::doQuery(), TestFileEditor::emitTest(), TestFileEditor::execute(), ApiEditPage::execute(), Linker::formatAutocomments(), Linker::generateTOC(), Wikimedia\Rdbms\LBFactoryMulti::getAllMainLBs(), ApiComparePages::getDiffRevision(), HTMLForm::getFooterText(), OOUIHTMLForm::getHeaderText(), HTMLForm::getHeaderText(), HTMLMultiSelectField::getInputOOUI(), Wikimedia\Rdbms\LBFactoryMulti::getMainLB(), GadgetHooks::getPreferences(), RawAction::getRawText(), Wikimedia\Rdbms\LBFactoryMulti::getSectionForDomain(), MediaWikiGadgetsDefinitionRepo::listFromDefinition(), SimpleCaptcha::loadText(), Exif::makeFilteredData(), Wikimedia\Rdbms\LBFactoryMulti::newMainLB(), WebInstallerOutput::outputFooter(), TestFileEditor::parseTest(), EditPageTest::provideAutoMerge(), MediaWiki\Widget\Search\FullSearchResultWidget::render(), ProfilerSectionOnly::scopedProfileIn(), SectionProfiler::scopedProfileIn(), ProfilerXhprof::scopedProfileIn(), SectionProfiler::scopedProfileOut(), Profiler::scopedProfileOut(), FileBackend::scopedProfileSection(), HTMLForm::setFooterText(), HTMLForm::setHeaderText(), SimpleCaptcha::shouldCheck(), SpecialGadgets::showMainForm(), EditPageTest::testExtractSectionTitle(), EditPageTest::testSectionEdit(), Exif::validate(), PreferencesFormOOUI::wrapFieldSetSection(), OOUIHTMLForm::wrapFieldSetSection(), and HTMLForm::wrapFieldSetSection().

◆ $services

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
static

Definition at line 2228 of file hooks.txt.

Referenced by SiteStatsUpdate::cacheUpdate(), SearchEngine::defaultNearMatcher(), MediaWiki\MediaWikiServices::disableStorageBackend(), LinkBatch::doGenderQuery(), LinksDeletionUpdate::doIncrementalUpdate(), MysqlUpdater::doTemplatelinksUpdate(), DatabaseInstaller::enableLB(), GetLagTimes::execute(), DeferredUpdates::execute(), MediaWiki\MediaWikiServices::forceGlobalInstance(), JobQueueGroup::get(), ApiQuerySearch::getAllowedParams(), MediaWiki\Tests\Storage\SqlBlobStoreTest::getBlobStore(), Skin::getCachedNotice(), Preferences::getDefaultPreferencesFactory(), ApiHelp::getHelp(), SpecialSearch::getSearchEngine(), LogPage::getTitleLink(), LinksUpdate::incrTableUpdate(), MediaWikiTestCase::installMockMwServices(), PurgeJobUtils::invalidatePages(), Linker::link(), MediaWikiTestCase::makeTestConfigFactoryInstantiator(), ObjectCache::newWANCacheFromParams(), SpecialWatchlist::outputChangesList(), MediaWikiTestCase::overrideMwServices(), InfoAction::pageInfo(), ApiPageSet::processTitlesArray(), ForeignAPIFile::purgeDescriptionPage(), UserGroupMembership::purgeExpired(), MWExceptionHandler::rollbackMasterChangesAndLog(), ClearWatchlistNotificationsJob::run(), RefreshLinksJob::runForTitle(), MediaWikiTestCase::setContentLang(), MediaWiki::setDBProfilingAgent(), Maintenance::setLBFactoryTriggers(), CaptchaPreAuthenticationProviderTest::setUp(), DefaultPreferencesFactoryTest::setUp(), MessageCache::singleton(), ServiceContainerTest::testAddServiceManipulator(), ServiceContainerTest::testAddServiceManipulator_fail_in_use(), ServiceContainerTest::testAddServiceManipulator_fail_undefined(), ServiceContainerTest::testApplyWiring(), MediaWikiServicesTest::testDefaultServiceInstantiation(), ServiceContainerTest::testDefineService(), ServiceContainerTest::testDefineService_fail_duplicate(), ServiceContainerTest::testDestroy(), ServiceContainerTest::testDisableService(), ServiceContainerTest::testDisableService_fail_undefined(), MediaWiki\Tests\Storage\NameTableStoreFactoryTest::testGet(), MediaWikiServicesTest::testGetInstance(), ServiceContainerTest::testGetService(), MediaWikiServicesTest::testGetService(), ServiceContainerTest::testGetService_fail_unknown(), ServiceContainerTest::testGetServiceNames(), MediaWikiServicesTest::testGetters(), ServiceContainerTest::testHasService(), ServiceContainerTest::testImportWiring(), MediaWiki\Tests\Storage\NameTableStoreFactoryTest::testIntegratedGetChangeTagDef(), MediaWiki\Tests\Storage\NameTableStoreFactoryTest::testIntegratedGetContentModels(), MediaWiki\Tests\Storage\NameTableStoreFactoryTest::testIntegratedGetSlotRoles(), ServiceContainerTest::testLoadWiringFiles(), ServiceContainerTest::testLoadWiringFiles_fail_duplicate(), MediaWiki\Tests\Revision\RevisionStoreTest::testMigrationConstruction(), RevisionDbTestBase::testNewFromArchiveRow(), ServiceContainerTest::testPeekService(), ServiceContainerTest::testPeekService_fail_unknown(), ServiceContainerTest::testRedefineService(), ServiceContainerTest::testRedefineService_disabled(), ServiceContainerTest::testRedefineService_fail_in_use(), ServiceContainerTest::testRedefineService_fail_undefined(), MediaWikiServicesTest::testResetServiceForTesting(), MediaWikiServicesTest::testResetServiceForTesting_noDestroy(), ServiceWiringTest::testServicesAreSorted(), and SiteStatsUpdate::tryDBUpdateInternal().

◆ $skin

◆ $suppressed

div flags Integer display flags (NO_ACTION_LINK,NO_EXTRA_USER_LINKS) 'LogException' returning false will NOT prevent logging a wrapping ErrorException $suppressed

Definition at line 2170 of file hooks.txt.

Referenced by MWExceptionHandler::logError(), and DifferenceEngine::showDiffPage().

◆ $tabindex

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

◆ $tables

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

Definition at line 979 of file hooks.txt.

Referenced by SpecialRecentChanges::__construct(), CleanupInvalidDbKeys::__construct(), ChangesListSpecialPage::__construct(), UploadFromUrlTestSuite::addTables(), SiteStatsInit::articles(), ChangesListSpecialPageTest::buildQuery(), ChangesListSpecialPage::buildQuery(), RangeChronologicalPager::buildQueryInfo(), ActiveUsersPager::buildQueryInfo(), IndexPager::buildQueryInfo(), ReplaceTextSearch::categoryCondition(), Sqlite::checkSqlSyntax(), CompressOld::compressWithConcat(), MediaWikiTestCase::copyTestData(), LocalFileDeleteBatch::doDBInserts(), PopulateLogSearch::doDBUpdates(), SpecialRecentChangesLinked::doMainQuery(), SpecialRecentChanges::doMainQuery(), SpecialWatchlist::doMainQuery(), ChangesListSpecialPage::doMainQuery(), MysqlUpdater::doNamespaceSize(), RevDelArchiveList::doQuery(), UserCache::doQuery(), ReplaceTextSearch::doSearchQuery(), MediaWikiTestCase::dropMockTables(), WikiExporter::dumpPages(), FixDoubleRedirects::execute(), CleanupInvalidDbKeys::execute(), ChangesListSpecialPageTest::fetchUsers(), ChangesListSpecialPage::filterOnUserExperienceLevel(), Title::getCascadeProtectionSources(), WikiPage::getContributors(), LocalFile::getHistory(), ActorMigration::getJoin(), CommentStore::getJoin(), ReplaceTextSearch::getMatchingTitles(), ShortPagesPage::getQueryInfo(), AncientPagesPage::getQueryInfo(), NewPagesPager::getQueryInfo(), LonelyPagesPage::getQueryInfo(), NewFilesPager::getQueryInfo(), ActiveUsersPager::getQueryInfo(), RandomPage::getQueryInfo(), LogPager::getQueryInfo(), ImageListPager::getQueryInfoReal(), ChangesListSpecialPage::getRows(), DatabaseLogEntry::getSelectQueryData(), PopulateContentTables::getTables(), WatchedItemQueryService::getWatchedItemsWithRCInfoQueryTables(), WatchedItemQueryService::getWatchedItemsWithRecentChangeInfo(), ActorMigration::getWhere(), ApiPageSet::initFromRevIDs(), MediaWikiTestCase::listTables(), UserDupes::lock(), LocalIdLookup::lookupCentralIds(), LocalIdLookup::lookupUserNames(), ChangeTags::makeTagSummarySubquery(), ChangeTags::modifyDisplayQuery(), ChangesListBooleanFilterGroup::modifyQuery(), ChangesListStringOptionsFilterGroup::modifyQuery(), ChangesListBooleanFilter::modifyQuery(), ChangesListStringOptionsFilterGroupTest::modifyQueryHelper(), SpecialReplaceText::namespaceTables(), InfoAction::pageCounts(), PopulateContentTables::populateTable(), ShortPagesPage::reallyDoQuery(), ContribsPager::reallyDoQuery(), ImageListPager::reallyDoQuery(), QueryPage::reallyDoQuery(), IndexPager::reallyDoQuery(), MediaWikiTestCase::recloneMockTables(), LocalFile::recordUpload2(), SpecialWatchlist::registerFilters(), CategoryTree::renderChildren(), ChangesListSpecialPage::runMainQueryHook(), UserNamePrefixSearch::search(), Wikimedia\Rdbms\Database::selectRowCount(), Wikimedia\Rdbms\DatabaseMssql::selectSQLText(), CategoryChangesAsRdf::setupChangesIterator(), SpecialReplaceText::showForm(), Wikimedia\Rdbms\Database::tableNamesWithAlias(), Wikimedia\Rdbms\Database::tableNamesWithIndexClauseOrJOIN(), WatchedItemQueryServiceUnitTest::testGetWatchedItemsWithRecentChangeInfo_extension(), ChangesListStringOptionsFilterGroupTest::testModifyQuery(), ChangesListStringOptionsFilterGroupTest::testNoOpModifyQuery(), DatabaseTest::testTableNamesWithIndexClauseOrJOIN(), and DatabaseSqliteTest::testUpgrades().

◆ $template

◆ $term

whereas SearchGetNearMatch runs after $term

Definition at line 2886 of file hooks.txt.

Referenced by MockSearchEngine::doSearchText(), SearchDatabase::doSearchText(), SearchMssql::doSearchTextInDB(), SearchPostgres::doSearchTextInDB(), SearchOracle::doSearchTextInDB(), SearchSqlite::doSearchTextInDB(), SearchMySQL::doSearchTextInDB(), SearchDatabase::doSearchTitle(), SearchPostgres::doSearchTitleInDB(), SearchMssql::doSearchTitleInDB(), SearchOracle::doSearchTitleInDB(), SearchSqlite::doSearchTitleInDB(), SearchMySQL::doSearchTitleInDB(), ParserTestsMaintenance::execute(), SpecialSearch::execute(), BlockLevelPass::execute(), SearchDatabase::extractNamespacePrefix(), MediaWiki\Widget\Search\InterwikiSearchResultSetWidget::footerHtml(), GIFMetadataExtractor::getMetadata(), SearchNearMatcher::getNearMatchInternal(), SpecialSearch::goResult(), ParserEditTests::handleFailure(), MediaWiki\Widget\Search\SimpleSearchResultSetWidget::headerHtml(), ParserEditTests::heading(), SearchHighlighter::highlightText(), PageArchive::listPagesBySearch(), MediaWiki\Widget\Search\SearchFormWidget::makeSearchLink(), MediaWiki\Widget\Search\SearchFormWidget::optionsHtml(), SearchSqlite::parseQuery(), SearchMySQL::parseQuery(), SearchPostgres::parseQuery(), MediaWiki\Widget\Search\SearchFormWidget::powerSearchBox(), MediaWiki\Widget\Search\SearchFormWidget::profileTabsHtml(), MediaWiki\Widget\Search\DidYouMeanWidget::render(), MediaWiki\Widget\Search\BasicSearchResultSetWidget::render(), MediaWiki\Widget\Search\SearchFormWidget::render(), MediaWiki\Widget\Search\SimpleSearchResultSetWidget::render(), MediaWiki\Widget\Search\InterwikiSearchResultSetWidget::render(), MediaWiki\Widget\Search\DidYouMeanWidget::rewrittenHtml(), SearchEngine::searchArchiveTitle(), SearchSqlite::searchInternal(), SearchMySQL::searchInternal(), SearchPostgres::searchQuery(), SearchEngine::searchText(), SearchEngine::searchTitle(), SpecialSearch::setupPage(), MediaWiki\Widget\Search\SearchFormWidget::shortDialogHtml(), SpecialSearch::showGoogleSearch(), SpecialSearch::showResults(), MediaWiki\Widget\Search\SearchFormWidget::startsWithImage(), SpecialSearchTest::testSearchTermIsNotExpanded(), and SearchEngine::transformSearchTerm().

◆ $time

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 $time

Definition at line 1802 of file hooks.txt.

Referenced by OldLocalFile::__construct(), Wikimedia\Rdbms\LoadBalancer::approveMasterChanges(), MediaWiki\Shell\Command::buildFinalCommand(), ApiFormatBase::closePrinter(), JobRunner::commitMasterChanges(), DBFileJournal::doGetPositionAtTime(), FileBackendTest::doTestGetFileStat(), PoolWorkArticleView::doWork(), MediaWikiPHPUnitTestListener::endTest(), SyncFileBackend::execute(), LoginSignupSpecialPage::execute(), FileRepo::findFile(), FileRepo::findFileFromKey(), MediaWiki\Logger\LegacyLogger::formatAsWfDebugLog(), MIMEsearchPage::formatResult(), FileDuplicateSearchPage::formatResult(), NewFilesPager::formatRow(), SpecialNewpages::formatRow(), User::getEditTimestamp(), ProtectionForm::getExpiry(), SpecialUndelete::getFileLink(), Language::getHumanTimestamp(), Wikimedia\Rdbms\DatabaseMysqlBase::getLagFromPtHeartbeat(), WANObjectCache::getMultiCheckKeyTime(), SpecialUndelete::getPageLink(), FileJournal::getPositionAtTime(), TextSlotDiffRenderer::getTextDiff(), SectionProfiler::getTime(), UIDGenerator::getTimestampedID128(), UIDGenerator::getTimestampedID88(), UIDGenerator::intervalsSinceGregorianBinary(), MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProvider::isTimestampValid(), ApiStashEdit::lastEditTime(), SpecialUndelete::loadRequest(), LogEventsList::logLine(), ApiMain::logRequest(), DummyLinker::makeBrokenImageLinkObj(), Linker::makeBrokenImageLinkObj(), FormatMetadata::makeFormattedData(), DummyLinker::makeImageLink(), Linker::makeImageLink(), DummyLinker::makeMediaLinkObj(), Linker::makeMediaLinkObj(), DummyLinker::makeThumbLink2(), Linker::makeThumbLink2(), UIDGenerator::millisecondsSinceEpochBinary(), ForeignAPIRepo::newFile(), FileRepo::newFile(), OldLocalFile::newFromTitle(), User::newTouchedTimestamp(), IPTC::parse(), MediaWiki\Preferences\DefaultPreferencesFactory::profilePreferences(), ZipDirectoryReader::readCentralDirectory(), WatchedItemStore::resetNotificationTimestamp(), MapCacheLRU::setMockTime(), BagOStuff::setMockTime(), WANObjectCache::setMockTime(), EmailConfirmation::showRequestForm(), SpecialUndelete::showRevision(), MediaWiki\Session\CookieSessionProviderTest::testCookieData(), LBFactoryTest::testCPPosIndexCookieValues(), ParserOutputTest::testGetCacheTime(), MediaWiki\Session\ImmutableSessionProviderWithCookieTest::testPersistSession(), MediaWiki\Session\CookieSessionProviderTest::testPersistSession(), WatchedItemStoreUnitTest::testResetNotificationTimestamp_futureNotificationTimestampForced(), WatchedItemStoreUnitTest::testResetNotificationTimestamp_futureNotificationTimestampNotForced(), WatchedItemStoreUnitTest::testResetNotificationTimestamp_notWatchedPageForced(), WatchedItemStoreUnitTest::testResetNotificationTimestamp_oldidSpecifiedLatestRevisionForced(), WatchedItemStoreUnitTest::testResetNotificationTimestamp_oldidSpecifiedNotLatestRevisionForced(), IPTC::timeHelper(), UIDGenerator::timeWaitUntil(), PrefixingStatsdDataFactoryProxy::timing(), and Language::translateBlockExpiry().

◆ $title

do that in ParserLimitReportFormat instead use this to modify the parameters of the image $title

Definition at line 925 of file hooks.txt.

Referenced by MessageCacheUpdate::__construct(), WikiFilePage::__construct(), HTMLFileCache::__construct(), Revision\RevisionStoreRecord::__construct(), Revision\RevisionStoreCacheRecord::__construct(), Revision\RevisionArchiveRecord::__construct(), Revision\MutableRevisionRecord::__construct(), Revision\RevisionRecord::__construct(), WikiPage::__construct(), LinksUpdate::__construct(), Revision::__construct(), LogPage::actionText(), ImageGalleryBase::add(), FancyCaptcha::addCaptchaAPI(), MediaWiki\Tests\Maintenance\TextPassDumperDatabaseTest::addDBData(), SpecialMyLanguageTest::addDBDataOnce(), ApiQueryUserContribsTest::addDBDataOnce(), CategoryMembershipChangeTest::addDBDataOnce(), MediaWiki\Tests\Maintenance\FetchTextTest::addDBDataOnce(), ParserOutput::addInterwikiLink(), ApiQuerySearch::addInterwikiResults(), ParserOutput::addLink(), MediaWiki\Tests\Maintenance\BackupDumperLoggerTest::addLogEntry(), ApiComparePagesTest::addPage(), LinkBatch::addResultToCache(), ParserOutput::addTemplate(), ApiQueryBase::addTitleInfo(), Skin::addToSidebarPlain(), ParserOutput::addTrackingCategory(), User::addWatch(), Block::appliesToTitle(), CategoryTreeHooks::articleFromTitle(), EditPageTest::assertEdit(), LinksUpdateTest::assertLinksUpdate(), MediaWiki\Tests\Maintenance\DumpAsserter::assertLogItem(), SpecialMyLanguageTest::assertTitle(), RCCacheEntryFactoryTest::assertTitleLink(), EmailConfirmation::attemptConfirm(), CoreParserFunctions::basepagename(), CoreParserFunctions::basepagenamee(), SpecialUserLogin::beforeExecute(), WikiImporter::beforeImportPage(), MessageCache::bigMessageCacheKey(), MediaWiki\Linker\LinkRenderer::buildAElement(), SkinTemplate::buildContentNavigationUrls(), ChangesFeed::buildItems(), SkinTemplate::buildPersonalUrls(), SpecialEditWatchlist::buildRemoveLine(), Linker::buildRollbackLink(), MediaWiki\EditPage\TextboxBuilder::buildTextboxAttribs(), GadgetDefinitionContentHandler::canBeUsedOn(), PageDataRequestHandler::canHandleRequest(), XmlDumpWriter::canonicalTitle(), SimpleCaptcha::captchaTriggers(), SpecialPageFactory::capturePath(), MediaWiki\Special\SpecialPageFactory::capturePath(), CoreParserFunctions::cascadingsources(), SpecialPageLanguage::changePageLanguage(), ApiStashEdit::checkCache(), Revision\RevisionStore::checkContent(), SpecialComparePages::checkExistingTitle(), SpecialPage::checkLoginSecurityLevel(), LocalRepo::checkRedirect(), RepoGroup::checkRedirect(), RevisionDeleter::checkRevisionExistence(), Orphans::checkSeparation(), SpecialEditWatchlist::checkTitle(), Skin::checkTitle(), ApiBase::checkTitleUserPermissions(), Cleanup::cleanupArticle(), CleanupSpam::cleanupArticle(), SpecialEditWatchlist::cleanupWatchlist(), LinkCache::clearBadLink(), TitleBlacklistHooks::clearBlacklist(), RepoGroup::clearCache(), HTMLFileCache::clearFileCache(), User::clearNotification(), DummyLinker::commentBlock(), Linker::commentBlock(), Article::confirmDelete(), SimpleCaptcha::confirmEditMerged(), Language::convertTitle(), Revision::countByTitle(), Revision\RevisionStore::countRevisionsByTitle(), ApiFeedWatchlist::createFeedItem(), NaiveForeignTitleFactory::createForeignTitle(), NamespaceAwareForeignTitleFactory::createForeignTitle(), SpecialReplaceText::createJobsForTextReplacements(), RevisionDeleter::createList(), Installer::createMainpage(), RefreshLinksJobTest::createPage(), RevisionDbTestBase::createPage(), PrefixSearch::defaultSearchBackend(), ApiDelete::delete(), Article::delete(), DifferenceEngine::deletedLink(), ApiDelete::deleteFile(), ApiUploadTestCase::deleteFileByTitle(), ApiQueryRecentChangesIntegrationTest::deletePage(), ApiQueryWatchlistIntegrationTest::deletePage(), SpecialRedirect::dispatchFile(), TitleBlacklistHooks::displayBlacklistOverrideNotice(), CoreParserFunctions::displaytitle(), ApiQueryRecentChangesIntegrationTest::doAnonPageEdit(), ApiQueryWatchlistIntegrationTest::doAnonPageEdit(), ApiQueryRecentChangesIntegrationTest::doBotPageEdit(), ApiQueryWatchlistIntegrationTest::doBotPageEdit(), SpecialNuke::doDelete(), DifferenceEngineTest::doEdits(), WikiEditorHooks::doEventLogging(), SpecialExport::doExport(), ApiQuery::doExport(), LinksDeletionUpdate::doIncrementalUpdate(), SpamBlacklist::doLogging(), SpecialRecentChangesLinked::doMainQuery(), ApiQueryRecentChangesIntegrationTest::doMinorPageEdit(), ApiQueryWatchlistIntegrationTest::doMinorPageEdit(), RecompressTracked::doPage(), ApiQueryRecentChangesIntegrationTest::doPageEdit(), ApiQueryWatchlistIntegrationTest::doPageEdit(), ApiQueryWatchlistIntegrationTest::doPatrolledPageEdit(), JobQueueDB::doPop(), PurgeList::doPurge(), GenderCache::doTitlesArray(), WatchAction::doUnwatch(), MediaWiki\Storage\DerivedPageDataUpdater::doUpdates(), LinkHolderArray::doVariants(), WatchAction::doWatch(), WatchAction::doWatchOrUnwatch(), MediaWikiTestCase::editPage(), CodeEditorHooks::editPageShowEditFormInitial(), SearchEngineTest::editSearchResultPage(), Revision\RevisionStore::emulateMainSlot_1_29(), Revision::ensureTitle(), Title::equals(), Cleanup::execute(), ApiCategoryTree::execute(), ApiImageRotate::execute(), ApiWatch::execute(), ApiPurge::execute(), PageExists::execute(), ApiExpandTemplates::execute(), ApiQueryCategoryInfo::execute(), Undelete::execute(), ApiQueryAllMessages::execute(), ApiQueryTitleBlacklist::execute(), ApiQueryLangLinks::execute(), ApiSetNotificationTimestamp::execute(), ApiQueryIWLinks::execute(), CheckBadRedirects::execute(), CompareParserCache::execute(), ApiQueryDeletedrevs::execute(), PurgePage::execute(), ViewCLI::execute(), ApiQueryFilearchive::execute(), MakeTestEdits::execute(), ApiQueryReferences::execute(), SpecialBlockList::execute(), DeleteDefaultMessages::execute(), FormatInstallDoc::execute(), GetTextMaint::execute(), ImportSiteScripts::execute(), NukePage::execute(), ApiParse::execute(), ApiQueryImageInfo::execute(), ApiQueryLogEvents::execute(), FixDoubleRedirects::execute(), ApiComparePages::execute(), AttachLatest::execute(), RollbackEdits::execute(), DeleteBatch::execute(), EditCLI::execute(), ImportTextFiles::execute(), PurgeChangedPages::execute(), ApiStashEdit::execute(), NukeNS::execute(), SpecialExpandTemplates::execute(), RefreshLinks::execute(), RandomPage::execute(), RebuildFileCache::execute(), SpecialWatchlist::execute(), CategoryTreePage::execute(), BenchmarkParse::execute(), ConvertLinks::execute(), UpdateCollation::execute(), DeleteEqualMessages::execute(), FileDuplicateSearchPage::execute(), SpecialEmailUser::execute(), SpecialSearch::execute(), ImportImages::execute(), LoginSignupSpecialPage::execute(), ApiQueryInfo::execute(), ChangesListSpecialPage::execute(), SpecialPageFactory::executePath(), MediaWiki\Special\SpecialPageFactory::executePath(), WantedFilesPage::existenceCheck(), WantedQueryPage::existenceCheck(), MediaWiki\Special\SpecialPageFactory::exists(), ApiQueryRevisionsBase::extractDeprecatedContent(), ApiQueryWatchlist::extractOutputData(), ApiQueryInfo::extractPageInfo(), ApiQueryLogEvents::extractRowInfo(), ApiQueryRecentChanges::extractRowInfo(), ApiQueryUserContribs::extractRowInfo(), SpecialEditWatchlist::extractTitles(), WikiPage::factory(), ApiFeedContributions::feedItem(), HistoryAction::feedItem(), SpecialNewpages::feedItem(), ApiHelpParamValueMessage::fetchMessage(), MediaWikiGadgetsDefinitionRepo::fetchStructuredList(), ResourceLoaderWikiModule::fetchTitleInfo(), GadgetDefinitionContent::fillParserOutput(), WikitextContent::fillParserOutput(), SpamBlacklist::filter(), SpamBlacklistHooks::filterMergedContent(), RepoGroup::findFile(), FileRepo::findFile(), LocalRepo::findFiles(), FileRepo::findFiles(), SimpleCaptcha::findLinks(), WikiImporter::finishImportPage(), Skin::footerLink(), Skin::footerLinkTitle(), Linker::formatAutocomments(), ApiParse::formatCategoryLinks(), DummyLinker::formatComment(), Linker::formatComment(), FeedUtils::formatDiffRow(), ApiParse::formatIWLinks(), ApiParse::formatLangLinks(), ApiParse::formatLinks(), DummyLinker::formatLinksInComment(), Linker::formatLinksInComment(), BlockLogFormatter::formatParametersForApi(), LogFormatter::formatParameterValue(), LogFormatter::formatParameterValueForApi(), PageQueryPage::formatResult(), WantedQueryPage::formatResult(), UnusedtemplatesPage::formatResult(), UnusedCategoriesPage::formatResult(), MostcategoriesPage::formatResult(), MostinterwikisPage::formatResult(), UncategorizedCategoriesPage::formatResult(), AncientPagesPage::formatResult(), MostlinkedTemplatesPage::formatResult(), MostlinkedPage::formatResult(), ShortPagesPage::formatResult(), SpecialPagesWithProp::formatResult(), LinkSearchPage::formatResult(), SpecialProtectedtitles::formatRow(), CategoryPager::formatRow(), NewFilesPager::formatRow(), SpecialNewpages::formatRow(), ApiParse::formatSummary(), ProtectedPagesPager::formatValue(), AllMessagesTablePager::formatValue(), SearchSuggestionSet::fromStrings(), SearchSuggestion::fromTitle(), SearchSuggestionSet::fromTitles(), CoreParserFunctions::fullpagename(), CoreParserFunctions::fullpagenamee(), ParserFuzzTest::fuzzTest(), CoreParserFunctions::gender(), MediaWiki\Widget\Search\FullSearchResultWidget::generateAltTitleHtml(), MediaWiki\Widget\Search\FullSearchResultWidget::generateFileHtml(), SpecialExpandTemplates::generateHtml(), MediaWiki\Widget\Search\FullSearchResultWidget::generateMainLinkHtml(), Article::generateReason(), MediaWiki\Widget\Search\FullSearchResultWidget::generateRedirectHtml(), MediaWiki\Widget\Search\FullSearchResultWidget::generateSectionHtml(), MediaWiki\Widget\Search\FullSearchResultWidget::generateSizeHtml(), ProtectLogFormatter::getActionLinks(), BlockLogFormatter::getActionLinks(), LegacyLogFormatter::getActionLinks(), EditPage::getActionURL(), NamespaceDupes::getAlternateTitle(), BaseBlacklist::getArticleText(), ContentHandler::getAutoDeleteReason(), Revision\RevisionStore::getBaseRevisionRow(), TitleBlacklist::getBlacklistText(), CoreParserFunctions::getCachedRevisionObject(), InfoAction::getCacheKey(), FancyCaptcha::getCaptchaInfo(), Skin::getCategoryLinks(), EditPage::getCheckboxesWidget(), ApiCategoryTree::getConditionalRequestData(), ResourceLoaderWikiModule::getContent(), PopulateContentTables::getContentModel(), WikiPage::getContentModel(), ResourceLoaderWikiModule::getContentObj(), RCCacheEntryFactoryTest::getContext(), Skin::getCopyright(), EditPage::getCopyrightWarning(), SpamBlacklist::getCurrentLinks(), AllMessagesTablePager::getCustomisedStatuses(), FileContentHandler::getDataForSearchIndex(), Revision\MainSlotRoleHandler::getDefaultModel(), ContentHandler::getDefaultModelFor(), MediaTransformOutput::getDescLinkAttribs(), FeedUtils::getDiffLink(), ApiComparePages::getDiffRevision(), PageDataRequestHandler::getDocUrl(), ApiQueryBacklinksprop::getExamplesMessages(), UncategorizedCategoriesPage::getExceptionList(), MediaWikiTestCase::getExistingTestPage(), FormatMetadata::getExtendedMetadataFromFile(), ApiQueryRecentChangesIntegrationTest::getExternalRC(), ApiQueryWatchlistIntegrationTest::getExternalRC(), ApiFeedRecentChanges::getFeedObject(), WikiFilePage::getForeignCategories(), FormAction::getForm(), SpecialPageLanguage::getFormFields(), FancyCaptcha::getFormInformation(), ContentHandler::getForTitle(), MediaWikiTitleCodec::getFullText(), GadgetDefinitionNamespaceRepo::getGadget(), PageProps::getGoodIDs(), LinkCache::getGoodLinkID(), UserGroupMembership::getGroupPage(), ChangeTagsLogItem::getHTML(), ApiCategoryTree::getHTML(), RevDelLogItem::getHTML(), ImagePageTest::getImagePage(), ImagePage404Test::getImagePage(), LinksUpdate::getInterlangInsertions(), ApiPageSet::getInterwikiTitlesAsResult(), DummyLinker::getInvalidTitleDescription(), Linker::getInvalidTitleDescription(), ApiPageSet::getInvalidTitlesAndRevisions(), JobQueueRedis::getJobFromFields(), JobQueueRedis::getJobFromUidInternal(), Revision\RevisionStore::getKnownCurrentRevision(), IRCColourfulRCFeedFormatter::getLine(), SpecialExport::getLinks(), SimpleCaptcha::getLinksFromTracker(), MediaWiki\Linker\LinkRenderer::getLinkURL(), RenameuserLogFormatter::getMessageParameters(), BlockLogFormatter::getMessageParameters(), MonoBookTemplate::getMobileNavigationIcon(), MediaWiki\Tests\Revision\RenderedRevisionTest::getMockRevision(), ParserMethodsTest::getMockTitle(), WatchedItemStoreUnitTest::getMockTitle(), MultimediaViewerHooks::getModulesForCategory(), MessageCache::getMsgFromNamespace(), FileRepo::getNameFromTitle(), TablePager::getNavigationBar(), SearchNearMatcher::getNearMatch(), SearchNearMatcher::getNearMatchInternal(), Revision::getNext(), Revision\RevisionStore::getNextRevision(), MediaWikiTestCase::getNonexistingTestPage(), SpecialEditWatchlist::getNormalForm(), WatchedItemStore::getNotificationTimestamp(), ArticleViewTest::getPage(), MediaWiki\Tests\Storage\DerivedPageDataUpdaterTest::getPage(), SkinVector::getPageClasses(), Skin::getPageClasses(), CodeEditorHooks::getPageLanguage(), ContentHandler::getPageLanguage(), SpecialExport::getPagesFromCategory(), TimelessTemplate::getPageTools(), ContentHandler::getPageViewLanguage(), AbstractContent::getParserOutput(), MediaWikiTitleCodec::getPrefixedText(), EditPage::getPreloadedContent(), RenameuserLogFormatter::getPreloadTitles(), BlockLogFormatter::getPreloadTitles(), Revision::getPrevious(), Revision\RevisionStore::getPreviousRevision(), ApiQueryInfo::getProtectionInfo(), RandomPage::getRandomTitle(), SpecialRandomInCategory::getRandomTitle(), RawAction::getRawText(), SpecialMyLanguage::getRedirect(), AbstractContent::getRedirectChain(), Article::getRedirectHeaderHtml(), CssContent::getRedirectTarget(), JavaScriptContent::getRedirectTarget(), ListredirectsPage::getRedirectTarget(), SearchExactMatchRescorer::getRedirectTarget(), WikitextContent::getRedirectTarget(), WikitextContent::getRedirectTargetAndText(), ApiPageSet::getRedirectTargets(), Skin::getRelevantUser(), LinksUpdate::getRemovedLinks(), Revision\RevisionRenderer::getRenderedRevision(), ReplaceTextSearch::getReplacedTitle(), SpecialChangeCredentials::getReturnUrl(), DummyLinker::getRevDeleteLink(), Linker::getRevDeleteLink(), BenchmarkParse::getRevIdForTime(), Revision\RevisionStore::getRevisionByTimestamp(), Revision\RevisionStore::getRevisionByTitle(), DifferenceEngine::getRevisionHeader(), DifferenceEngineTest::getRevisionRecord(), TitleArrayFromResultTest::getRowWithTitle(), ApiQuerySearch::getSearchResultData(), GadgetDefinitionContent::getSecondaryDataUpdates(), AbstractContent::getSecondaryDataUpdates(), ApiStashEditTest::getStashKey(), ApiStashEdit::getStashKey(), CategoryTree::getTag(), User::getTalkPage(), DatabaseLogEntry::getTarget(), RCDatabaseLogEntry::getTarget(), TestRecentChangesHelper::getTestContext(), MediaWiki\Tests\Revision\RevisionStoreDbTestBase::getTestPage(), MediaWikiTitleCodec::getText(), MediaWiki\EditPage\TextboxBuilder::getTextboxProtectionCSSClasses(), Revision::getTimestampFromId(), Revision\RevisionStore::getTimestampFromId(), MediaWiki\Tests\Storage\DerivedPageDataUpdaterTest::getTitle(), CLIParser::getTitle(), Revision\RevisionStore::getTitle(), WatchedItemStore::getTitleDbKeysGroupedByNamespace(), ResourceLoaderWikiModule::getTitleInfo(), LogPage::getTitleLink(), SpecialReplaceText::getTitlesForEditingWithContext(), SpecialReplaceText::getTitlesForMoveAndUnmoveableTitles(), User::getTokenUrl(), BaseBlacklist::getTypeFromTitle(), ApiQueryInfo::getUnblockToken(), Skin::getUndeleteLink(), WatchAction::getUnwatchToken(), Interwiki::getURL(), ExternalUserNames::getUserLinkTitle(), SpecialEditWatchlist::getWatchlist(), SpecialSearch::goResult(), ApiComparePages::guessModel(), ApiComparePages::guessTitle(), WikiImporter::handlePage(), AuthManagerSpecialPage::handleReauthBeforeExecute(), PageDataRequestHandler::handleRequest(), DumpRenderer::handleRevision(), DumpIterator::handleRevision(), BackupReader::handleRevision(), FixDefaultJsonContentPages::handleRow(), ParserMethodsTest::helperParserFunc(), PageDataRequestHandler::httpContentNegotiation(), MediaWiki\Extensions\ParserFunctions\ParserFunctions::ifexistCommon(), MediaWiki\Extensions\ParserFunctions\ParserFunctions::ifexistObj(), ApiPageSet::initFromQueryResult(), ApiPageSet::initFromRevIDs(), SearchResult::initFromTitle(), MediaWiki::initializeArticle(), SideBarTest::initMessagesHref(), ImageGalleryBase::insert(), ChangesList::insertLog(), MediaWikiTestCase::insertPage(), Revision\RevisionStore::insertRevisionInternal(), Revision\RevisionStore::insertRevisionOn(), Revision\RevisionStore::insertRevisionRowOn(), ChangesList::insertRollback(), Revision\RevisionStore::insertSlotOn(), InfoAction::invalidateCache(), LocalRepo::invalidateImageRedirect(), ResourceLoaderWikiModule::invalidateModuleCache(), LinkCache::invalidateTitle(), Revision\MainSlotRoleHandler::isAllowedModel(), LinkCache::isBadLink(), TitleBlacklist::isBlacklisted(), User::isBlockedFrom(), LinkCache::isCacheable(), WikitextContent::isCountable(), BaseBlacklist::isLocalSource(), Title::isSubpageOf(), ChangeTags::isTagNameValid(), User::isWatched(), TitleBlacklist::isWhitelisted(), ReplaceTextUtils::link(), SpecialNuke::listForm(), ReplaceAll::listTitles(), MessageCache::loadCachedMessagePageEntry(), HTMLTitlesMultiselectField::loadDataFromRequest(), Revision::loadFromTimestamp(), Revision::loadFromTitle(), Revision\RevisionStore::loadRevisionFromConds(), Revision\RevisionStore::loadRevisionFromTimestamp(), Revision\RevisionStore::loadRevisionFromTitle(), SimpleCaptcha::loadText(), SpamBlacklist::logFilterHit(), TitleBlacklistHooks::logFilterHitUsername(), MediaWiki::main(), SkinTemplate::makeArticleUrlDetails(), MediaWiki\Tests\Revision\FallbackSlotRoleHandlerTest::makeBlankTitleObject(), MediaWiki\Tests\Revision\SlotRoleHandlerTest::makeBlankTitleObject(), MediaWiki\Tests\Revision\SlotRoleRegistryTest::makeBlankTitleObject(), DummyLinker::makeBrokenImageLinkObj(), Linker::makeBrokenImageLinkObj(), EnhancedChangesList::makeCacheGroupingKey(), DummyLinker::makeCommentLink(), ContentHandler::makeContent(), PopulateArchiveRevId::makeDummyRevisionRow(), UserTest::makeEdit(), DummyLinker::makeExternalLink(), Linker::makeExternalLink(), SpecialExpandTemplates::makeForm(), User::makeGroupLinkHTML(), User::makeGroupLinkWiki(), MediaWiki\Tests\Revision::makeHasSameContentTestRecord(), Skin::makeI18nUrl(), DummyLinker::makeImageLink(), Linker::makeImageLink(), Skin::makeKnownUrlDetails(), MediaWiki\Linker\LinkRenderer::makeLink(), BaseTemplate::makeLink(), Skin::makeMainPageUrl(), DummyLinker::makeMediaLinkFile(), Linker::makeMediaLinkFile(), DummyLinker::makeMediaLinkObj(), Linker::makeMediaLinkObj(), Title::makeName(), MediaWiki\Storage\PageUpdater::makeNewRevision(), Skin::makeNSUrl(), SpecialRecentChanges::makeOptionsLink(), MessageCacheTest::makePage(), RightsLogFormatter::makePageLink(), LogFormatter::makePageLink(), MediaWiki\Tests\Storage\DerivedPageDataUpdaterTest::makeRevision(), Skin::makeSpecialUrl(), Skin::makeSpecialUrlSubpage(), SkinTemplate::makeTalkUrlDetails(), DummyLinker::makeThumbLink2(), Linker::makeThumbLink2(), DummyLinker::makeThumbLinkObj(), Linker::makeThumbLinkObj(), Title::makeTitle(), CategoryTree::makeTitle(), MediaWiki\Tests\Revision\MainSlotRoleHandlerTest::makeTitleObject(), Title::makeTitleSafe(), Skin::makeUrl(), Skin::makeUrlDetails(), MostlinkedPage::makeWlhLink(), WantedQueryPage::makeWlhLink(), MostlinkedTemplatesPage::makeWlhLink(), TitleBlacklistEntry::matches(), MediaWiki\Tests\EditPage\TextboxBuilderTest::mockProtectedTitle(), ApiQuerySearchTest::mockResultClosure(), TitleCleanup::moveIllegalPage(), TitleCleanup::moveInconsistentPage(), CoreParserFunctions::mwnamespace(), RenameuserLogFormatter::myPageLink(), CoreParserFunctions::namespacee(), CoreParserFunctions::namespacenumber(), XmlDumpWriter::namespaces(), ForeignAPIRepo::newFile(), FileRepo::newFile(), LocalRepo::newFromArchiveName(), Revision::newFromArchiveRow(), Title::newFromID(), Category::newFromName(), Revision\MutableRevisionRecord::newFromParentRevision(), Category::newFromRow(), SearchResult::newFromTitle(), Category::newFromTitle(), Article::newFromTitle(), CdnCacheUpdate::newFromTitles(), Revision::newKnownCurrent(), RecentChange::newLogEntry(), Title::newMainPage(), Revision\RevisionStore::newMutableRevisionFromArray(), JobTest::newNullJob(), Revision\RevisionStore::newNullRevision(), Revision::newNullRevision(), CategoryPage::newPage(), ImagePage::newPage(), WikiPageDbTestBase::newPage(), Article::newPage(), MediaWiki\Tests\Revision\RevisionStoreCacheRecordTest::newRevision(), MediaWiki\Tests\Revision\RevisionStoreRecordTest::newRevision(), MediaWiki\Tests\Revision\RevisionArchiveRecordTest::newRevision(), MediaWiki\Tests\Revision\MutableRevisionRecordTest::newRevision(), Revision\RevisionStore::newRevisionFromArchiveRow(), Revision\RevisionStore::newRevisionFromConds(), Revision\RevisionStore::newRevisionFromRow(), Revision\RevisionStore::newRevisionSlots(), RevisionDbTestBase::newTestRevision(), DummyLinker::normaliseSpecialPage(), RecentChange::notifyEdit(), RecentChange::notifyLog(), RecentChange::notifyNew(), Language::numLink(), ConfirmEditHooks::onAlternateEditPreview(), WikiPage::onArticleCreate(), WikiPage::onArticleDelete(), WikiPage::onArticleEdit(), GadgetHooks::onCodeEditorGetPageLanguage(), onContentGetParserOutput(), CiteHooks::onContentHandlerDefaultModelFor(), GadgetHooks::onContentHandlerDefaultModelFor(), GadgetHooks::onEditFilterMergedContent(), BenchmarkParse::onFetchTemplate(), SpecialPermanentLink::onFormSubmit(), SpecialDiff::onFormSubmit(), InputBoxHooks::onMediaWikiPerformAction(), ConfirmEditHooks::onPageContentSaveComplete(), RenameuserHooks::onShowMissingArticle(), CiteThisPageHooks::onSkinTemplateBuildNavUrlsNav_urlsAfterPermalink(), InputBoxHooks::onSpecialPageBeforeExecute(), SpecialRandomInCategory::onSubmit(), SpecialPageLanguage::onSubmit(), ConfirmEditHooks::onTitleReadWhitelist(), SpamBlacklistHooks::onUploadVerifyUpload(), RawAction::onView(), ParserOptions::optionsHash(), ApiQuery::outputGeneralPageInfo(), SpecialSpecialpages::outputPageList(), ImageQueryPage::outputResults(), WikiExporter::pageByName(), WikiExporter::pageByTitle(), WikiImporter::pageCallback(), InfoAction::pageCounts(), WikiPage::pageDataFromTitle(), Article::pageDataFromTitle(), CoreParserFunctions::pageid(), InfoAction::pageInfo(), SpecialReplaceText::pageListForm(), CoreParserFunctions::pagename(), CoreParserFunctions::pagenamee(), CoreParserFunctions::pagesincategory(), CoreParserFunctions::pagesize(), MessageCache::parse(), ApiStashEdit::parseAndStash(), MediaWiki::parseTitle(), NamespaceAwareForeignTitleFactory::parseTitleNoNs(), NamespaceAwareForeignTitleFactory::parseTitleWithNs(), BacklinkJobUtils::partitionBacklinkJob(), MediaWiki::performAction(), MediaWiki::performRequest(), ApiPageSet::populateGeneratorData(), PopulateContentModel::populatePage(), PopulateContentModel::populateRevisionOrArchive(), RebuildTextIndex::populateSearchIndex(), ReplaceTextSearch::prefixCondition(), SpecialPage::prefixSearchString(), CategoryTreePage::prefixSearchSubpages(), FileDuplicateSearchPage::prefixSearchSubpages(), Skin::preloadExistence(), ResourceLoaderWikiModule::preloadTitleInfo(), WikitextContent::preloadTransform(), MediaWiki\Storage\DerivedPageDataUpdater::prepareContent(), SkinTemplate::prepareQuickTemplate(), JavaScriptContent::preSaveTransform(), CssContent::preSaveTransform(), WikitextContent::preSaveTransform(), MarkpatrolledAction::preText(), ApiPageSet::processDbRow(), SpecialBlock::processForm(), CompareParsers::processRevision(), TitleCleanup::processRow(), CleanupImages::processRow(), CleanupWatchlist::processRow(), WikiImporter::processTitle(), ApiPageSet::processTitlesArray(), CoreParserFunctions::protectionexpiry(), CoreParserFunctions::protectionlevel(), MediaWiki\Tests\Revision\RevisionStoreRecordTest::provideConstructor(), MediaWiki\Tests\Revision\RevisionArchiveRecordTest::provideConstructor(), MediaWiki\Tests\Revision\MutableRevisionRecordTest::provideConstructor(), MediaWiki\Tests\Revision\MutableRevisionRecordTest::provideConstructorFailure(), MediaWiki\Tests\Revision\RevisionArchiveRecordTest::provideConstructorFailure(), MediaWiki\Tests\Revision\RevisionStoreRecordTest::provideConstructorFailure(), MediaWiki\Tests\Storage\DerivedPageDataUpdaterTest::provideIsReusableFor(), MediaWiki\Tests\Revision\RevisionStoreDbTestBase::provideNonHistoryRevision(), MediaWiki\Tests\Revision\MutableRevisionRecordTest::provideNotReadyForInsertion(), ParserMethodsTest::provideRevisionAccess(), JobTest::provideTestJobFactory(), PurgePage::purge(), WikiPage::purgeInterwikiCheckKey(), PurgeList::purgeNamespace(), LinksUpdate::queueRecursiveJobs(), LinksUpdate::queueRecursiveJobsForTable(), DoubleRedirectsPage::reallyGetQueryInfo(), SearchExactMatchRescorer::redirectTargetsToRedirect(), MessageCache::refreshAndReplaceInternal(), User::removeWatch(), MediaWiki\Widget\Search\InterwikiSearchResultWidget::render(), MediaWiki\Widget\Search\SimpleSearchResultWidget::render(), ImageMap::render(), CategoryTree::renderChildren(), CategoryTree::renderNode(), CategoryTree::renderNodeInfo(), CategoryTree::renderParents(), MessageCache::replace(), LinkHolderArray::replaceInternal(), ReplaceAll::replaceTitles(), ImportReporter::reportPage(), ApiImportReporter::reportPage(), WatchedItemStore::resetNotificationTimestamp(), ChangesList::revDateLink(), CoreParserFunctions::revisionday(), CoreParserFunctions::revisionday2(), SpecialNewpages::revisionFromRcResult(), CoreParserFunctions::revisionid(), CoreParserFunctions::revisionmonth(), CoreParserFunctions::revisionmonth1(), CoreParserFunctions::revisiontimestamp(), CoreParserFunctions::revisionuser(), CoreParserFunctions::revisionyear(), SpecialComparePages::revOrTitle(), CoreParserFunctions::rootpagename(), CoreParserFunctions::rootpagenamee(), ApiQueryDeletedRevisions::run(), ApiQueryAllRevisions::run(), ApiQueryAllDeletedRevisions::run(), ApiQueryImages::run(), ApiQueryProtectedTitles::run(), ApiQueryPrefixSearch::run(), ApiQueryExtLinksUsage::run(), ApiQueryIWBacklinks::run(), ApiQueryLangBacklinks::run(), ApiQueryCategories::run(), ApiQueryWatchlistRaw::run(), ApiQuerySearch::run(), ApiQueryPagesWithProp::run(), ApiQueryCategoryMembers::run(), ApiQueryAllPages::run(), ApiQueryLinks::run(), ApiQueryQueryPage::run(), ApiQueryRevisions::run(), ApiQueryBacklinksprop::run(), ApiQueryAllLinks::run(), ApiQueryRecentChanges::run(), MediaWiki\Linker\LinkRenderer::runLegacyBeginHook(), ApiQueryRandom::runQuery(), ApiQueryBacklinks::runSecondQuery(), SpecialEditWatchlist::runWatchUnwatchCompleteHook(), RecentChange::save(), ApiOpenSearch::search(), ImageGalleryBase::setContextTitle(), EditPage::setContextTitle(), ApiPageSet::setGeneratorData(), ParserOptions::setRedirectTarget(), SearchSuggestion::setSuggestedTitle(), WikiImporter::setTargetRootPage(), Revision::setTitle(), ApiQueryPrefixSearchTest::setUp(), DifferenceEngineTest::setUp(), MagicVariableTest::setUp(), ParserOptions::setupFakeRevision(), SkinTemplate::setupTemplateForOutput(), ApiComparePages::setVals(), CiteThisPageHooks::shouldAddLink(), SimpleCaptcha::shouldCheck(), ResourceLoaderWikiModule::shouldEmbedModule(), ProtectionForm::show(), SpecialSearch::showCreateLink(), EditPage::showCustomIntro(), SpecialExpandTemplates::showHtmlPreview(), SpecialBookSources::showList(), SpecialUndelete::showList(), SpecialPageLanguage::showLogFragment(), MovePageForm::showLogFragment(), Article::showMissingArticle(), Article::showPatrolFooter(), SpecialPrefixindex::showPrefixChunk(), SpecialSearch::showResults(), MovePageForm::showSubpages(), LoginSignupSpecialPage::showSuccessPage(), SpecialEditWatchlist::showTitles(), SpecialUpload::showViewDeletedLinks(), BackupReader::skippedNamespace(), CoreParserFunctions::special(), ExtraParserTest::statelessFetchTemplate(), JobTest::staticNullJob(), CoreParserFunctions::subjectpagename(), CoreParserFunctions::subjectpagenamee(), CoreParserFunctions::subjectspace(), CoreParserFunctions::subjectspacee(), WebInstallerName::submit(), CoreParserFunctions::subpagename(), CoreParserFunctions::subpagenamee(), Skin::subPageSubtitle(), SkinTemplate::tabAction(), CoreParserFunctions::talkpagename(), CoreParserFunctions::talkpagenamee(), CoreParserFunctions::talkspace(), CoreParserFunctions::talkspacee(), Scribunto_LuaTitleBlacklistLibrary::test(), ApiEditPageTest::testAppendInMediaWikiNamespaceWithSerializationError(), ApiEditPageTest::testAppendWithNonTextContentHandler(), BlockTest::testAppliesToPageOnPartialPageBlock(), BlockTest::testAppliesToReturnsTrueOnSitewideBlock(), BlockTest::testAppliesToTitleReturnsTrueOnSitewideBlock(), ArticleViewTest::testArticleContentViewCustomHook(), ArticleViewTest::testArticleRevisionViewCustomHook(), EditPageTest::testAutoMerge(), ForeignTitleTest::testBasic(), SubpageImportTitleFactoryTest::testBasic(), NamespaceImportTitleFactoryTest::testBasic(), NaiveForeignTitleFactoryTest::testBasic(), NamespaceAwareForeignTitleFactoryTest::testBasic(), NaiveImportTitleFactoryTest::testBasic(), ApiBlockTest::testBlockWithRestrictions(), MediaWiki\Tests\EditPage\TextboxBuilderTest::testBuildTextboxAttribs(), ParserMethodsTest::testCallParserFunction(), TitleTest::testCanHaveTalkPage(), ApiQueryRecentChangesIntegrationTest::testCategorizeTypeParameter(), ApiQueryWatchlistIntegrationTest::testCategorizeTypeParameter(), EditPageTest::testCheckDirectEditingDisallowed_forNonTextContent(), SampleTest::testCheckMainPageTitleIsConsideredLocal(), ExtraParserTest::testCleanSig(), ExtraParserTest::testCleanSigDisabled(), MediaWiki\Tests\Storage\PageUpdaterTest::testCompareAndSwapFailure(), ErrorPageErrorTest::testConstruction(), MediaWiki\Tests\Revision\FallbackSlotRoleHandlerTest::testConstruction(), MediaWiki\Tests\Revision\SlotRoleHandlerTest::testConstruction(), TitleValueTest::testConstruction(), TitleArrayFromResultTest::testConstructionWithRow(), MediaWiki\Tests\Revision\MutableRevisionRecordTest::testConstructorAndGetters(), MediaWiki\Tests\Revision\RevisionArchiveRecordTest::testConstructorAndGetters(), MediaWiki\Tests\Revision\RevisionStoreRecordTest::testConstructorAndGetters(), MediaWiki\Tests\Revision\MutableRevisionRecordTest::testConstructorFailure(), MediaWiki\Tests\Revision\RevisionArchiveRecordTest::testConstructorFailure(), MediaWiki\Tests\Revision\RevisionStoreRecordTest::testConstructorFailure(), ApiQueryRevisionsTest::testContentComesWithContentModelAndFormat(), SampleTest::testCreateBasicListOfTitles(), TitleValueTest::testCreateFragmentTitle(), TitleTest::testCreateFragmentTitle(), MediaWiki\Tests\Storage\PageUpdaterTest::testCreatePage(), TitleArrayFromResultTest::testCurrentAfterConstruction(), ContentHandlerTest::testDataIndexFields(), WikitextContentHandlerTest::testDataIndexFieldsFile(), MediaWiki\Tests\Revision\SlotRoleRegistryTest::testDefineRole(), MediaWiki\Tests\Revision\SlotRoleRegistryTest::testDefineRoleWithContentModel(), TextContentTest::testDeletionUpdates(), WikiPageDbTestBase::testDoEditContent(), WikiPageDbTestBase::testDoEditContent_twice(), ApiEditPageTest::testEdit_redirect(), ApiEditPageTest::testEdit_redirectText(), ApiEditPageTest::testEditConflict(), ApiEditPageTest::testEditConflict_newSection(), ApiEditPageTest::testEditConflict_T43990(), ApiQueryInfoTest::testExecute(), ApiQueryInfoTest::testExecuteEditActions(), ApiQueryInfoTest::testExecuteEditActionsFull(), ApiQueryInfoTest::testExecuteEditActionsFullBlock(), ApiQueryBlocksTest::testExecuteRestrictions(), TitleTest::testExists(), WikiCategoryPageTest::testExpectUnusedCategory_PropertyNotSet(), EditPageTest::testExtractSectionTitle(), MediaWiki\Tests\Storage\PageUpdaterTest::testFailureOnBadContentModel(), MediaWiki\Tests\Storage\PageUpdaterTest::testFailureOnEditFlags(), SearchEngineTest::testFiltersMissing(), TitleTest::testFixSpecialNameRetainsParameter(), BlockListPagerTest::testFormatValueRestrictions(), ForeignTitleTest::testFullText(), MediaWiki\Tests\Revision\SlotRoleRegistryTest::testGetAllowedRoles(), ContentHandlerTest::testGetAutosummary(), TitleTest::testGetBaseText(), ResourceLoaderWikiModuleTest::testGetContent(), RevisionDbTestBase::testGetContent(), RevisionTest::testGetContent(), RevisionTest::testGetContent_failure(), RevisionDbTestBase::testGetContentFormat(), ResourceLoaderWikiModuleTest::testGetContentForRedirects(), RevisionDbTestBase::testGetContentHandler(), TitleMethodsTest::testGetContentModel(), RevisionDbTestBase::testGetContentModel(), ContentHandlerTest::testGetDefaultModelFor(), WikiPageNoContentModelDbTest::testGetDeletionUpdates(), WikitextContentHandlerTest::testGetDeletionUpdates(), ContentHandlerTest::testGetForTitle(), TitleTest::testGetFragment(), TitleTest::testGetFragmentForURL(), MediaWikiTitleCodecTest::testGetFullText(), MediaWiki\Tests\Revision\SlotRoleRegistryTest::testGetKnownRoles(), TitleMethodsTest::testGetLinkURL(), TitleMethodsTest::testGetOtherPage(), ContentHandlerTest::testGetPageLanguage(), TitleTest::testGetPageViewLanguage(), MessageContentTest::testGetParserOutput(), TextContentTest::testGetParserOutput(), MediaWikiTitleCodecTest::testGetPrefixedDBkey(), TitleTest::testGetPrefixedDBKey(), MediaWikiTitleCodecTest::testGetPrefixedText(), TitleTest::testGetPrefixedText(), ExtraParserTest::testGetPreloadText(), PageArchiveTestBase::testGetPreviousRevision(), CssContentTest::testGetRedirectTarget(), JavaScriptContentTest::testGetRedirectTarget(), WikiPageDbTestBase::testGetRedirectTarget(), MediaWiki\Tests\Revision\RevisionRendererTest::testGetRenderedRevision_current(), MediaWiki\Tests\Revision\RevisionRendererTest::testGetRenderedRevision_known(), MediaWiki\Tests\Revision\RevisionRendererTest::testGetRenderedRevision_master(), MediaWiki\Tests\Revision\RevisionRendererTest::testGetRenderedRevision_multi(), 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\SlotRoleRegistryTest::testGetRequiredRoles(), 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(), TitleTest::testGetRootText(), WikitextContentTest::testGetSecondaryDataUpdates(), WikitextContentHandlerTest::testGetSecondaryDataUpdates(), ParserMethodsTest::testGetSections(), RevisionTest::testGetSha1(), RevisionTest::testGetSha1_failure(), RevisionTest::testGetSize(), RevisionTest::testGetSize_failure(), TitleTest::testGetSubpageText(), TitleTest::testGetTalkPage_good(), TitleTest::testGetTalkPageIfDefined_bad(), TitleTest::testGetTalkPageIfDefined_good(), ParserOutputSearchDataExtractorTest::testGetTemplates(), TitleValueTest::testGetText(), MediaWikiTitleCodecTest::testGetText(), MediaWiki\Tests\Block\Restriction\PageRestrictionTest::testGetTitle(), MediaWiki\Tests\Revision\RevisionStoreTest::testGetTitle_successFromPageId(), MediaWiki\Tests\Revision\RevisionStoreTest::testGetTitle_successFromPageIdOnFallback(), MediaWiki\Tests\Revision\RevisionStoreTest::testGetTitle_successFromRevId(), MediaWiki\Tests\Revision\RevisionStoreTest::testGetTitle_successFromRevIdOnFallback(), SpecialPageTest::testGetTitleFor(), SpecialPageFactoryTest::testGetTitleForAlias(), SpecialPageTest::testGetTitleForWithWarning(), TitleTest::testGetTitleValue(), BaseBlacklistTest::testGetTypeFromTitle(), ImportTest::testHandlePageContainsRedirect(), TitleMethodsTest::testHasContentModel(), TitleMethodsTest::testHasSubjectNamespace(), WikiPageDbTestBase::testHasViewableContent(), WikiCategoryPageTest::testHiddenCategory_PropertyNotSet(), MediaWiki\Tests\Storage\PageUpdaterTest::testInheritSlot(), TitleMethodsTest::testInNamespace(), RevisionDbTestBase::testInsertOn_exceptionOnIncomplete(), MediaWiki\Tests\Revision\McrWriteBothRevisionStoreDbTest::testInsertRevisionFromArchiveRow_unmigratedArchiveRow(), MediaWiki\Tests\Revision\RevisionStoreDbTestBase::testInsertRevisionOn_archive(), MediaWiki\Tests\Revision\RevisionStoreDbTestBase::testInsertRevisionOn_blobAddressExists(), MediaWiki\Tests\Revision\RevisionStoreDbTestBase::testInsertRevisionOn_successes(), ApiResultTest::testInstanceDataMethods(), SpecialPageTest::testInvalidGetTitleFor(), MediaWiki\Tests\Revision\FallbackSlotRoleHandlerTest::testIsAllowedModel(), MediaWiki\Tests\Revision\SlotRoleHandlerTest::testIsAllowedModel(), MediaWiki\Tests\Revision\MainSlotRoleHandlerTest::testIsAllowedModel(), MediaWiki\Tests\Revision\FallbackSlotRoleHandlerTest::testIsAllowedOn(), TitleTest::testIsAlwaysKnown(), TitleTest::testIsAlwaysKnownOnInterwiki(), UserTest::testIsBlockedFrom(), WikiPageDbTestBase::testIsCountable(), TitleTest::testIsRawHtmlMessage(), WikiPageDbTestBase::testIsRedirect(), TitleMethodsTest::testIsUserConfigPage(), TitleMethodsTest::testIsUserCssConfigPage(), TitleMethodsTest::testIsUserJsConfigPage(), TitleTest::testIsValid(), TitleTest::testIsValidMoveOperation(), TitleMethodsTest::testIsWikitextPage(), RevisionTest::testLoadFromTitle(), MediaWiki\Tests\Revision\RevisionStoreDbTestBase::testLoadRevisionFromId(), MediaWiki\Tests\Revision\RevisionStoreDbTestBase::testLoadRevisionFromPageId(), MediaWiki\Tests\Revision\RevisionStoreDbTestBase::testLoadRevisionFromTimestamp(), MediaWiki\Tests\Revision\RevisionStoreDbTestBase::testLoadRevisionFromTitle(), ExtraParserTest::testLongNumericLinesDontKillTheParser(), MediaWiki\Tests\Storage\PageUpdaterTest::testMagicWords(), ContentHandlerTest::testMakeContent(), CssContentHandlerTest::testMakeRedirectContent(), JavaScriptContentHandlerTest::testMakeRedirectContent(), WikitextContentHandlerTest::testMakeRedirectContent(), MediaWiki\Tests\Block\BlockRestrictionStoreTest::testMappingPageRestrictionObject(), CaptchaTest::testNamespaceTriggersOverwrite(), SearchNearMatcherTest::testNearMatch(), TitleTest::testNewFromLinkTarget(), TitleTest::testNewFromLinkTarget_clone(), CategoryTest::testNewFromTitle(), TitleTest::testNewFromTitleValue(), MediaWiki\Tests\Revision\RevisionStoreDbTestBase::testNewNullRevision(), MediaWiki\Tests\Revision\RevisionStoreDbTestBase::testNewRevisionFromArchiveRow_getArchiveQueryInfo(), MediaWiki\Tests\Revision\RevisionStoreDbTestBase::testNewRevisionFromArchiveRow_legacyEncoding(), MediaWiki\Tests\Revision\RevisionStoreDbTestBase::testNewRevisionFromRow_no_user(), MediaWiki\Tests\Revision\RenderedRevisionTest::testNoHtml(), LinksUpdateTest::testOnAddingAndRemovingCategory_recentChangesRowIsAdded(), ExportTest::testPageByTitle(), ExtraParserTest::testParse(), ContentHandlerTest::testParserOutputForIndexing(), MediaWikiTitleCodecTest::testParseTitle(), ApiQueryAllPagesTest::testPrefixNormalizationSearchBug(), WikiPageDbTestBase::testPrepareContentForEdit(), ExtraParserTest::testPreprocess(), BlockListPagerTest::testPreprocessResults(), ParserMethodsTest::testPreSaveTransform(), ExtraParserTest::testPreSaveTransform(), CdnCacheUpdateTest::testPurgeMergeWeb(), ParserMethodsTest::testRecursiveParse(), RefreshLinksPartitionTest::testRefreshLinks(), ErrorPageErrorTest::testReport(), SpecialPageTest::testRequireLoginAnon(), WatchedItemStoreUnitTest::testResetNotificationTimestamp_futureNotificationTimestampForced(), WatchedItemStoreUnitTest::testResetNotificationTimestamp_futureNotificationTimestampNotForced(), WatchedItemStoreUnitTest::testResetNotificationTimestamp_item(), WatchedItemStoreUnitTest::testResetNotificationTimestamp_noItemForced(), WatchedItemStoreUnitTest::testResetNotificationTimestamp_notWatchedPageForced(), WatchedItemStoreUnitTest::testResetNotificationTimestamp_oldidSpecifiedLatestRevisionForced(), WatchedItemStoreUnitTest::testResetNotificationTimestamp_oldidSpecifiedNotLatestRevisionForced(), ParserMethodsTest::testRevisionAccess(), SpecialSearchTest::testRewriteQueryWithSuggestion(), MediaWiki\Tests\Storage\PageUpdaterTest::testSetRcPatrolStatus(), MediaWiki\Tests\Revision\RenderedRevisionTest::testSetRevisionParserOutput(), SampleTest::testSetUpMainPageTitleForNextTest(), MediaWiki\Tests\Storage\PageUpdaterTest::testSetUseAutomaticEditSummaries(), MediaWiki\Tests\Storage\PageUpdaterTest::testSetUsePageCreationLog(), TitleMethodsTest::testSiteConfigPage(), ExtraParserTest::testSpecialPageTransclusionRestoresGlobalState(), ApiResultTest::testStaticDataMethods(), TemplateCategoriesTest::testTemplateCategories(), ArticleTablesTest::testTemplatelinksUsesContentLanguage(), SampleTest::testTitleObjectFromObject(), SampleTest::testTitleObjectStringConversion(), ApiQueryTest::testTitlesAreRejectedIfInvalid(), ExtraParserTest::testTrackingCategory(), ExtraParserTest::testTrackingCategorySpecial(), MediaWikiTest::testTryNormaliseRedirect(), ForeignTitleTest::testUnknownNamespaceCheck(), ForeignTitleTest::testUnknownNamespaceError(), ImportTest::testUnknownXMLTags(), MediaWiki\Tests\Storage\PageUpdaterTest::testUpdatePage(), WatchedItemStoreIntegrationTest::testUpdateResetAndSetNotificationTimestamp(), MediaWiki\Tests\Revision\RenderedRevisionTest::testUpdateRevision(), MediaWiki\Tests\Revision::testUserCanBitfield(), RevisionDbTestBase::testUserCanBitfield(), TitleBlacklistHooks::testUserName(), ArticleViewTest::testViewMessagePage(), ArticleViewTest::testViewMissingUserPage(), ArticleViewTest::testViewNonText(), ArticleViewTest::testViewUserPageOfNonexistingUser(), WatchedItemStoreIntegrationTest::testWatchAndUnWatchItem(), GlobalWithDBTest::testWfIsBadImage(), TitleTest::testWgWhitelistReadRegexp(), ParserMethodsTest::testWrapOutput(), MediaWiki\Extensions\ParserFunctions\ParserFunctions::titleparts(), CategoriesRdf::titleToUrl(), Linker::tocList(), MediaWikiSite::toDBKey(), ThumbnailImage::toHtml(), MessageCache::transform(), PHPVersionCheck::triggerError(), SimpleCaptcha::triggersCaptcha(), MediaWiki::tryNormaliseRedirect(), ContribsPager::tryToCreateValidRevision(), WatchedItemStore::uncacheTitlesForUser(), SearchMssql::update(), SearchOracle::update(), SearchSqlite::update(), SearchMySQL::update(), Language::updateConversionTable(), MessageCache::updateMessageOverride(), Maintenance::updateSearchIndexForPage(), SearchMssql::updateTitle(), SearchOracle::updateTitle(), SearchSqlite::updateTitle(), SearchMySQL::updateTitle(), EditPage::updateWatchlist(), CoreParserFunctions::urlFunction(), TitleBlacklistHooks::userCan(), Revision\RevisionRecord::userCanBitfield(), Revision::userCanBitfield(), TitleBlacklist::userCannot(), HTMLTitleTextField::validate(), HTMLTitlesMultiselectField::validate(), SpamBlacklistHooks::validate(), TitleBlacklistHooks::validateBlacklist(), ApiFileRevert::validateParameters(), CategoryPage::view(), Language::viewPrevNext(), SpamBlacklist::warmCachesForFilter(), ApiWatch::watchTitle(), wfFindFile(), wfIsBadImage(), wfLocalFile(), wfStreamThumb(), SpecialWhatLinksHere::wlhLink(), SkinTemplate::wrapHTML(), CategoriesRdf::writeCategoryData(), and XmlDumpWriter::writeLogItem().

◆ $unhide

null for the 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

◆ $user

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 or null $user

Definition at line 1476 of file hooks.txt.

Referenced by SpecialOATHDisable::__construct(), SpecialOATHEnable::__construct(), UserEditCountUpdate::__construct(), UploadFromChunks::__construct(), UploadFromStash::__construct(), ImageListPager::__construct(), Revision\RevisionStoreRecord::__construct(), Revision\RevisionStoreCacheRecord::__construct(), Revision\RevisionArchiveRecord::__construct(), ParserOptions::__construct(), ChangeTags::activateTagWithChecks(), EmailNotification::actuallyNotifyOnPageChange(), BlockTest::addBlockForUser(), ApiBase::addBlockInfoToStatus(), EditPage::addContentModelChangeLogEntry(), MediaWikiTestCase::addCoreDBData(), ApiQueryUserContribsTest::addDBDataOnce(), ApiComparePagesTest::addDBDataOnce(), MediaWiki\Tests\Maintenance\BackupDumperLoggerTest::addLogEntry(), UserrightsPage::addLogEntry(), ApiComparePagesTest::addPage(), ChangeTags::addTagsAccompanyingChangeWithChecks(), WatchedItemStore::addWatchBatchForUser(), WikiPage::archiveRevisions(), ChangesListSpecialPageTest::assertConditions(), EditPageTest::assertEdit(), RCCacheEntryFactoryTest::assertUserLinks(), SpecialChangeEmail::attemptChange(), EmailConfirmation::attemptConfirm(), EmailInvalidation::attemptInvalidate(), Revision\RevisionRecord::audienceCan(), MediaWiki\Auth\AuthManager::autoCreateUser(), GadgetHooks::beforePageDisplay(), 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\ConfirmLinkSecondaryAuthenticationProvider::beginSecondaryAccountCreation(), MediaWiki\Auth\EmailNotificationSecondaryAuthenticationProvider::beginSecondaryAccountCreation(), MediaWiki\Auth\ResetPasswordSecondaryAuthenticationProvider::beginSecondaryAccountCreation(), MediaWiki\Auth\ConfirmLinkSecondaryAuthenticationProvider::beginSecondaryAuthentication(), MediaWiki\Auth\ResetPasswordSecondaryAuthenticationProvider::beginSecondaryAuthentication(), TOTPSecondaryAuthenticationProvider::beginSecondaryAuthentication(), MediaWiki\Auth\CheckBlocksSecondaryAuthenticationProvider::beginSecondaryAuthentication(), SkinTemplate::buildContentNavigationUrls(), ProtectionForm::buildForm(), SkinTemplate::buildNavUrls(), ChangesListSpecialPageTest::buildQuery(), MediaWiki\EditPage\TextboxBuilder::buildTextboxAttribs(), EditPage::buildTextboxAttribs(), WatchedItemStore::cache(), ChangeTags::canActivateTag(), ChangeTags::canAddTagsAccompanyingChange(), SpecialBlock::canBlockEmail(), MediaWiki\Auth\AuthManager::canCreateAccount(), ChangeTags::canCreateTag(), ChangeTags::canDeactivateTag(), ChangeTags::canDeleteTag(), User::canSendEmail(), SimpleCaptcha::canSkipCaptcha(), ChangeTags::canUpdateTags(), ApiQueryTestBase::check(), MediaWiki\Permissions\PermissionManager::checkActionPermissions(), ApiMain::checkAsserts(), ApiStashEdit::checkCache(), WatchAction::checkCanExecute(), RevertAction::checkCanExecute(), McrUndoAction::checkCanExecute(), Action::checkCanExecute(), MediaWiki\Permissions\PermissionManager::checkCascadingSourcesRestrictions(), Autopromote::checkCondition(), SpecialUnlockdb::checkExecutePermissions(), SpecialLockdb::checkExecutePermissions(), SpecialDisableOATHForUser::checkExecutePermissions(), SpecialBlock::checkExecutePermissions(), SpecialChangeEmail::checkExecutePermissions(), SpecialPasswordReset::checkExecutePermissions(), SpecialOATHDisable::checkExecutePermissions(), SpecialOATHEnable::checkExecutePermissions(), SpecialBotPasswords::checkExecutePermissions(), FormSpecialPage::checkExecutePermissions(), ApiMain::checkExecutePermissions(), CompareParsers::checkOptions(), MediaWiki\Permissions\PermissionManager::checkPageRestrictions(), PasswordPolicyChecks::checkPasswordCannotMatchBlacklist(), PasswordPolicyChecks::checkPasswordCannotMatchUsername(), MediaWiki\Permissions\PermissionManager::checkPermissionHooks(), MovePage::checkPermissions(), SpecialCreateAccount::checkPermissions(), MergeHistory::checkPermissions(), ApiUpload::checkPermissions(), UserPasswordPolicy::checkPolicies(), MediaWiki\Permissions\PermissionManager::checkQuickPermissions(), MediaWiki\Permissions\PermissionManager::checkReadPermissions(), MediaWiki\Permissions\PermissionManager::checkSiteConfigPermissions(), MediaWiki\Permissions\PermissionManager::checkSpecialsAndNSPermissions(), SpecialWatchlist::checkStructuredFilterUiEnabled(), ChangesListSpecialPage::checkStructuredFilterUiEnabled(), ApiBase::checkTitleUserPermissions(), EmailBlacklist::checkUser(), MediaWiki\Permissions\PermissionManager::checkUserBlock(), MediaWiki\Permissions\PermissionManager::checkUserConfigPermissions(), ApiBase::checkUserRightsAny(), ApiQueryWatchlistIntegrationTest::cleanTestUsersWatchlist(), Cleanup::cleanupArticle(), SpecialEditWatchlist::cleanupWatchlist(), User::clearNotification(), WatchedItemStore::clearUserWatchedItems(), WatchedItemStore::clearUserWatchedItemsUsingJobQueue(), EmailNotification::compose(), Article::confirmDelete(), ConfirmEditHooks::confirmEditMerged(), ResourceLoaderUserTokensModule::contextUserTokens(), MediaWiki\Auth\AuthManager::continueAccountCreation(), MediaWiki\Auth\AuthManager::continueAccountLink(), MediaWiki\Auth\AuthManager::continueAuthentication(), MediaWiki\Auth\ConfirmLinkSecondaryAuthenticationProvider::continueLinkAttempt(), MediaWiki\Auth\ConfirmLinkSecondaryAuthenticationProvider::continueSecondaryAccountCreation(), MediaWiki\Auth\ResetPasswordSecondaryAuthenticationProvider::continueSecondaryAccountCreation(), MediaWiki\Auth\ConfirmLinkSecondaryAuthenticationProvider::continueSecondaryAuthentication(), MediaWiki\Auth\ResetPasswordSecondaryAuthenticationProvider::continueSecondaryAuthentication(), TOTPSecondaryAuthenticationProvider::continueSecondaryAuthentication(), SpecialContributions::contributionsSub(), MediaWiki\Session\CookieSessionProvider::cookieDataToExport(), NoWriteWatchedItemStore::countUnreadNotifications(), WatchedItemStore::countUnreadNotifications(), NoWriteWatchedItemStore::countWatchedItems(), WatchedItemStore::countWatchedItems(), ApiFeedWatchlist::createFeedItem(), SpecialReplaceText::createJobsForTextReplacements(), User::createNew(), WikiPageDbTestBase::createPage(), MediaWiki\Tests\Storage\DerivedPageDataUpdaterTest::createRevision(), MediaWiki\Tests\Storage\PageUpdaterTest::createRevision(), MediaWiki\Tests\Revision\RevisionStoreDbTestBase::createRevisionStoreCacheRecord(), Installer::createSysop(), ChangeTags::createTagWithChecks(), Preferences::datetimePreferences(), MediaWiki\Preferences\DefaultPreferencesFactory::datetimePreferences(), WatchedItemStore::dbCond(), ChangeTags::deactivateTagWithChecks(), ApiDelete::delete(), Article::delete(), ApiDelete::deleteFile(), ChangeTags::deleteTagWithChecks(), SpecialUndelete::diffHeader(), SpecialRedirect::dispatchUser(), ApiTestCase::doApiRequest(), ApiTestCase::doApiRequestWithToken(), ApiQueryRecentChangesIntegrationTest::doBotPageEdit(), ApiQueryWatchlistIntegrationTest::doBotPageEdit(), ApiStashEditTest::doCheckCache(), FileDeleteForm::doDelete(), Article::doDelete(), WikiPage::doDeleteArticle(), Article::doDeleteArticleReal(), Article::doDeleteUpdates(), WikiPage::doDeleteUpdates(), WikiPage::doEditContent(), Article::doEditContent(), WikiPage::doEditUpdates(), Article::doEditUpdates(), WikiEditorHooks::doEventLogging(), ApiQuery::doExport(), ApiUserrightsTest::doFailedRightsChange(), SpecialWatchlist::doHeader(), SpecialImport::doImport(), ApiQueryWatchlistIntegrationTest::doListWatchlistRequest(), SpamBlacklist::doLogging(), SpecialRecentChanges::doMainQuery(), SpecialWatchlist::doMainQuery(), RecentChange::doMarkPatrolled(), ApiQueryRecentChangesIntegrationTest::doMinorPageEdit(), ApiQueryWatchlistIntegrationTest::doMinorPageEdit(), ApiQueryRecentChangesIntegrationTest::doPageEdit(), ApiQueryWatchlistIntegrationTest::doPageEdit(), ApiQueryWatchlistIntegrationTest::doPatrolledPageEdit(), EditPage::doPreviewParse(), Article::doRollback(), WikiPage::doRollback(), UserrightsPage::doSaveUserGroups(), WikiPage::doSecondaryDataUpdates(), SpecialReplaceText::doSpecialReplaceText(), ApiStashEditTest::doStash(), UploadFromChunks::doStashFile(), ApiStashEditTest::doStashOld(), MovePageForm::doSubmit(), ApiUserrightsTest::doSuccessfulRightsChange(), WatchAction::doUnwatch(), WikiPage::doUpdateRestrictions(), Article::doUpdateRestrictions(), WikiPage::doViewUpdates(), Article::doViewUpdates(), WatchAction::doWatch(), WatchAction::doWatchOrUnwatch(), Preferences::editingPreferences(), MediaWiki\Preferences\DefaultPreferencesFactory::editingPreferences(), WikiEditorHooks::editPageShowEditFormInitial(), UserrightsPage::editUserGroupsForm(), LogPager::enforceActionRestrictions(), LogPager::enforcePerformerRestrictions(), ApiBase::errorArrayToStatus(), ApiValidatePassword::execute(), SpecialNuke::execute(), DisableOATHAuthForUser::execute(), Cleanup::execute(), SpecialRenameuser::execute(), ApiOATHValidate::execute(), ApiProtect::execute(), ApiUndelete::execute(), ApiManageTags::execute(), SpecialListFiles::execute(), ApiClearHasMsg::execute(), ApiMove::execute(), ApiImport::execute(), ApiWatch::execute(), ApiUpload::execute(), ApiEditPage::execute(), ApiLogout::execute(), ApiPurge::execute(), ApiQueryTokens::execute(), ApiRevisionDelete::execute(), ApiTag::execute(), ApiUnblock::execute(), ApiQueryOATH::execute(), ApiQueryMyStashedFiles::execute(), Undelete::execute(), ApiSetNotificationTimestamp::execute(), EmptyUserGroup::execute(), ApiPatrol::execute(), ApiBlock::execute(), ApiDelete::execute(), ApiQueryDeletedrevs::execute(), SpecialContributions::execute(), SpecialUnlinkAccounts::execute(), SpecialUserLogout::execute(), ApiRollback::execute(), ApiOptions::execute(), FixUserRegistration::execute(), ApiQueryFilearchive::execute(), SpecialPreferences::execute(), MakeTestEdits::execute(), MigrateUserGroup::execute(), DeleteDefaultMessages::execute(), ImportSiteScripts::execute(), InitEditCount::execute(), AddChangeTag::execute(), ChangePassword::execute(), Protect::execute(), ResetUserEmail::execute(), ApiQueryImageInfo::execute(), ApiQueryLogEvents::execute(), ApiQueryUserContribs::execute(), WrapOldPasswords::execute(), ApiSetPageLanguage::execute(), InvalidateUserSesssions::execute(), ApiUserrights::execute(), RollbackEdits::execute(), DeleteBatch::execute(), ApiStashEdit::execute(), ImportTextFiles::execute(), ResetUserTokens::execute(), MoveBatch::execute(), CreateAndPromote::execute(), SpecialWatchlist::execute(), SpecialEditTags::execute(), SpecialImport::execute(), MovePageForm::execute(), ApiLogin::execute(), UserrightsPage::execute(), ApiQueryUsers::execute(), DeleteEqualMessages::execute(), SpecialRevisionDelete::execute(), ImportImages::execute(), PasswordReset::execute(), SpecialUndelete::execute(), SpecialUpload::execute(), QueryPage::execute(), LocalFileRestoreBatch::execute(), SpecialPageExecutor::executeSpecialPage(), SpecialPageTestBase::executeSpecialPage(), ApiQueryWatchlist::extractOutputData(), ApiQueryInfo::extractPageInfo(), ApiQueryLogEvents::extractRowInfo(), ApiQueryRecentChanges::extractRowInfo(), ApiFeedContributions::feedItemAuthor(), UserrightsPage::fetchUser(), Preferences::filesPreferences(), OATHUserRepository::findByUser(), LocalRepo::findFiles(), MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProvider::finishAccountCreation(), ProtectLogFormatter::formatExpiry(), SpecialUndelete::formatFileRow(), LogFormatter::formatParameterValue(), LogFormatter::formatParameterValueForApi(), MIMEsearchPage::formatResult(), FileDuplicateSearchPage::formatResult(), SpecialMergeHistory::formatRevisionRow(), DeletedContribsPager::formatRevisionRow(), SpecialUndelete::formatRevisionRow(), SpecialProtectedtitles::formatRow(), UsersPager::formatRow(), NewFilesPager::formatRow(), ContribsPager::formatRow(), ParserFuzzTest::fuzzTest(), CoreParserFunctions::gender(), Preferences::generateSkinOptions(), MediaWiki\Preferences\DefaultPreferencesFactory::generateSkinOptions(), SpecialLog::getActionButtons(), DeleteLogFormatter::getActionLinks(), RevDelArchivedFileItem::getApiData(), RevDelLogItem::getApiData(), RevDelRevisionItem::getApiData(), RevDelFileItem::getApiData(), RecentChange::getAttribute(), CaptchaPreAuthenticationProvider::getAuthenticationRequests(), TitleBlacklistPreAuthenticationProvider::getAuthenticationRequests(), MediaWiki\Auth\AuthManager::getAuthenticationRequests(), MediaWiki\Auth\AuthManager::getAuthenticationRequestsInternal(), CreditsAction::getAuthor(), Autopromote::getAutopromoteGroups(), Autopromote::getAutopromoteOnceGroups(), MediaWiki\Session\SessionBackendTest::getBackend(), MediaWiki\Auth\CheckBlocksSecondaryAuthenticationProviderTest::getBlockedUser(), ImageHistoryPseudoPager::getBody(), WatchedItemStore::getCacheKey(), EnhancedChangesListTest::getCategorizationChange(), ApiQueryUserInfo::getCentralUserInfo(), EditPage::getCheckboxesDefinition(), Revision\RevisionArchiveRecord::getComment(), Revision\RevisionStoreRecord::getComment(), Revision\RevisionRecord::getComment(), Revision::getComment(), WikiPage::getComment(), Article::getComment(), Revision\RevisionRecord::getContent(), WikiPage::getContent(), Revision::getContent(), EditPage::getContentObject(), OldChangesListTest::getContext(), RCCacheEntryFactoryTest::getContext(), CreditsAction::getContributors(), InfoAction::getContributors(), WikiPage::getContributors(), WikiPage::getCreator(), Article::getCreator(), ApiQueryUserInfo::getCurrentUserInfo(), Skin::getDefaultModules(), UserDupes::getDupes(), EnhancedChangesListTest::getEditChange(), OldChangesListTest::getEditChange(), EditPage::getEditPermissionErrors(), User::getEffectiveGroups(), LogEventsList::getExcludeClause(), MediaWikiTestCase::getExistingTestPage(), WatchedItemQueryService::getExtraDeletedPageLogEntryRelatedCond(), SpecialUndelete::getFileLink(), MediaWiki\Preferences\DefaultPreferencesFactory::getForm(), MediaWiki\Preferences\DefaultPreferencesFactory::getFormDescriptor(), RevertAction::getFormFields(), SpecialResetTokens::getFormFields(), SpecialChangeEmail::getFormFields(), SpecialBlock::getFormFields(), SpecialPreferences::getFormObject(), Preferences::getFormObject(), User::getGlobalBlock(), UsersPager::getGroupMemberships(), MWTimestamp::getHumanTimestamp(), Language::getHumanTimestamp(), ImagePage::getImageLimitsFromOption(), ApiQueryImageInfo::getInfo(), ActorMigration::getInsertValues(), ActorMigration::getInsertValuesWithTempTable(), User::getInstanceForUpdate(), ApiQueryUserInfo::getLatestContributionTime(), IRCColourfulRCFeedFormatter::getLine(), EnhancedChangesListTest::getLogChange(), OldChangesListTest::getLogChange(), WatchActionTest::getLoggedInIsWatchedUser(), DifferenceEngine::getMarkPatrolledLinkInfo(), ApiUserrightsTest::getMockForProcessingExpiries(), MediaWiki\Tests\Revision\RevisionRendererTest::getMockTitle(), MediaWiki\Tests\Revision\RenderedRevisionTest::getMockTitle(), OldChangesListTest::getNewBotEditChange(), User::getNewMessageLinks(), Skin::getNewtalks(), Title::getNotificationTimestamp(), NoWriteWatchedItemStore::getNotificationTimestampsBatch(), WatchedItemStore::getNotificationTimestampsBatch(), UploadForm::getOptionsSection(), EditPage::getOriginalContent(), ArticleViewTest::getPage(), Skin::getPageClasses(), SpecialUndelete::getPageLink(), ResourceLoaderUserModule::getPages(), ResourceLoaderUserStylesModule::getPages(), WatchedItemStore::getPageSeenTimestampsKey(), Article::getParserOutput(), MediaWiki\Permissions\PermissionManager::getPermissionErrorsInternal(), SpecialEmailUser::getPermissionsError(), UserPasswordPolicy::getPoliciesForUser(), Preferences::getPreferences(), GadgetHooks::getPreferences(), EditPage::getPreloadedContent(), NewPagesPager::getQueryInfo(), NewFilesPager::getQueryInfo(), DeletedContribsPager::getQueryInfo(), ContribsPager::getQueryInfo(), ApiQueryUserInfo::getRateLimits(), ManualLogEntry::getRecentChange(), MWTimestamp::getRelativeTimestamp(), Skin::getRelevantUser(), SpecialPageFactory::getRestrictedPages(), MediaWiki\Special\SpecialPageFactory::getRestrictedPages(), MWNamespace::getRestrictionLevels(), DummyLinker::getRevDeleteLink(), Linker::getRevDeleteLink(), DifferenceEngine::getRevisionHeader(), RollbackEdits::getRollbackTitles(), LogEventsList::getShowHideLinks(), Revision\RevisionRecord::getSlot(), HistoryPager::getStartBody(), ApiStashEditTest::getStashKey(), ApiStashEdit::getStashKey(), DeletedContributionsPage::getSubTitle(), SpecialOATH::getTargetPage(), TestRecentChangesHelper::getTestContext(), MediaWiki\Tests\Revision\RevisionStoreDbTestBase::getTestPage(), ImageHistoryList::getThumbForLine(), ApiQueryTokens::getToken(), ApiTestCase::getTokenList(), ApiTokens::getTokenTypes(), WatchAction::getUnwatchToken(), FileRepo::getUploadStash(), ApiUserrights::getUrUser(), SpecialPageFactory::getUsablePages(), MediaWiki\Special\SpecialPageFactory::getUsablePages(), Revision\RevisionStoreCacheRecord::getUser(), Revision\RevisionArchiveRecord::getUser(), Revision\RevisionStoreRecord::getUser(), CategoryMembershipChange::getUser(), DoubleRedirectJob::getUser(), Revision\RevisionRecord::getUser(), Revision::getUser(), WikiPage::getUser(), Article::getUser(), BlockTest::getUserForBlocking(), LogEventsList::getUserInputDesc(), TimelessTemplate::getUserLinks(), Title::getUserPermissionsErrors(), WatchedItemQueryService::getUserRelatedConds(), ApiQueryUsers::getUserrightsToken(), Revision::getUserText(), WikiPage::getUserText(), Article::getUserText(), ApiQueryInfo::getVisitingWatcherInfo(), ApiQueryInfo::getWatchedInfo(), NoWriteWatchedItemStore::getWatchedItem(), WatchedItemStore::getWatchedItem(), NoWriteWatchedItemStore::getWatchedItemsForUser(), WatchedItemQueryService::getWatchedItemsForUser(), WatchedItemStore::getWatchedItemsForUser(), WatchedItemQueryService::getWatchedItemsForUserQueryConds(), WatchedItemQueryService::getWatchedItemsWithRCInfoQueryConds(), WatchedItemQueryService::getWatchedItemsWithRCInfoQueryFilterConds(), WatchedItemQueryService::getWatchedItemsWithRecentChangeInfo(), ApiQueryInfo::getWatcherInfo(), WatchedItemQueryService::getWatchlistOwnerId(), ApiBase::getWatchlistUser(), WatchAction::getWatchToken(), ActorMigration::getWhere(), UserrightsPage::groupCheckboxes(), DumpRenderer::handleRevision(), RollbackAction::handleRollbackRequest(), HistoryPager::historyLine(), ImageHistoryList::imageHistoryLine(), ImportableOldRevisionImporter::import(), ImportableUploadRevisionImporter::import(), EditPage::importFormData(), EditPage::initialiseForm(), ParserOptions::initialiseFromUser(), ReassignEdits::initialiseUser(), Revision\RevisionStore::initializeMutableRevisionFromArray(), SimpleCaptcha::injectEmailUser(), Revision\RevisionStore::insertIpChangesRow(), MediaWikiTestCase::insertPage(), WikiPage::insertProtectNullRevision(), Article::insertProtectNullRevision(), Revision\RevisionStore::insertRevisionInternal(), Revision\RevisionStore::insertRevisionOn(), EditPage::internalAttemptSave(), Language::internalUserTimeAndDate(), MediaWiki\Session\SessionManager::invalidateSessionsForUser(), UploadFromUrl::isAllowed(), PasswordReset::isAllowed(), SpecialUndelete::isAllowed(), Gadget::isAllowed(), LocalIdLookup::isAttached(), PasswordReset::isBlocked(), MediaWiki\Permissions\PermissionManager::isBlockedFrom(), User::isEmailConfirmed(), Gadget::isEnabled(), OATHAuthUtils::isEnabledFor(), RemoveUnusedAccounts::isInactiveAccount(), TestUserRegistry::isMutable(), Title::isNamespaceProtected(), ApiQueryGadgets::isNeeded(), ChangesList::isUnpatrolled(), NoWriteWatchedItemStore::isWatched(), ApiStashEdit::lastEditTime(), LogPager::limitType(), CreditsAction::link(), SpecialSearch::load(), RecentChange::loadFromRow(), User::loadFromSession(), User::loadFromUserObject(), MediaWiki\Preferences\DefaultPreferencesFactory::loadPreferenceValues(), SpecialUndelete::loadRequest(), NoWriteWatchedItemStore::loadWatchedItem(), WatchedItemStore::loadWatchedItem(), CentralIdLookup::localUserFromCentralId(), TitleBlacklistHooks::logFilterHitUsername(), BotPassword::login(), MssqlInstaller::loginExists(), BotPassword::loginHook(), User::logout(), ChangeTags::logTagManagementAction(), LoginSignupSpecialPage::mainLoginForm(), TestRecentChangesHelper::makeCategorizationRecentChange(), TestRecentChangesHelper::makeDeletedEditRecentChange(), TestRecentChangesHelper::makeEditRecentChange(), MultimediaViewerHooks::makeGlobalVariablesScript(), ChangesListSpecialPage::makeLegend(), TestRecentChangesHelper::makeLogRecentChange(), TestRecentChangesHelper::makeNewBotEditRecentChange(), PoolWorkArticleViewTest::makeRevision(), MediaWiki\Tests\Storage\DerivedPageDataUpdaterTest::makeRevision(), RevisionDbTestBase::makeRevisionWithProps(), LogFormatter::makeUserLink(), UserEditCountUpdate::merge(), MergeHistory::merge(), MovePage::move(), ApiMove::movePage(), MovePage::moveToInternal(), SpecialPageExecutor::newContext(), EnhancedChangesListTest::newEnhancedChangesList(), RecentChange::newForCategorization(), ClearUserWatchlistJob::newForUser(), User::newFromAnyId(), ChangesList::newFromContext(), RCCacheEntryFactory::newFromRecentChange(), User::newFromRow(), User::newFromSession(), MailAddress::newFromUser(), BotPassword::newFromUser(), ParserOptions::newFromUser(), ParserOptions::newFromUserAndLang(), RecentChange::newLogEntry(), Revision\RevisionStore::newNullRevision(), Revision::newNullRevision(), WikiPage::newPageUpdater(), MediaWiki\Tests\Revision\RevisionStoreCacheRecordTest::newRevision(), MediaWiki\Tests\Revision\RevisionStoreRecordTest::newRevision(), MediaWiki\Tests\Revision\RevisionArchiveRecordTest::newRevision(), MediaWiki\Tests\Revision\MutableRevisionRecordTest::newRevision(), Revision\RevisionStore::newRevisionFromArchiveRow(), Revision\RevisionStore::newRevisionFromRow(), MediaWiki\Session\Session\BotPasswordSessionProvider::newSessionForRequest(), User::newSystemUser(), CategoryMembershipChange::notifyCategorization(), RecentChange::notifyEdit(), RecentChange::notifyLog(), RecentChange::notifyNew(), MWTimestamp::offsetForUser(), WikiPage::onArticleDelete(), SpamBlacklistHooks::onArticleDeleteComplete(), SkinMonoBook::onGetPreferences(), OATHAuthHooks::onGetPreferences(), TitleBlacklistHooks::onMovePageCheckPermissions(), SpecialDisableOATHForUser::onSubmit(), MarkpatrolledAction::onSubmit(), SpecialResetTokens::onSubmit(), SpecialChangeContentModel::onSubmit(), RevertAction::onSuccess(), OATHAuthHooks::onTwoFactorIsEnabled(), MssqlInstaller::openConnection(), PostgresInstaller::openConnectionToAnyDB(), PostgresInstaller::openConnectionWithParams(), ImagePage::openShowImage(), SpecialRecentChanges::optionsPanel(), SpecialWatchlist::outputChangesList(), SpecialWatchlist::outputFeedLinks(), InfoAction::pageInfo(), SpamBlacklistHooks::pageSaveContent(), ApiStashEdit::parseAndStash(), SimpleCaptcha::passCaptchaLimited(), SimpleCaptcha::passCaptchaLimitedFromRequest(), AjaxDispatcher::performAction(), MediaWiki::performAction(), MediaWiki::performRequest(), OATHUserRepository::persist(), MediaWiki\Session\CookieSessionProvider::persistSession(), User::pingLimiter(), MediaWiki\Auth\UserDataAuthenticationRequest::populateUser(), CaptchaPreAuthenticationProvider::postAuthentication(), MediaWiki\Auth\ThrottlePreAuthenticationProvider::postAuthentication(), LoginSignupSpecialPage::postProcessFormDescriptor(), SpecialBlock::postText(), MediaWiki\Widget\Search\SearchFormWidget::powerSearchBox(), SpecialListFiles::prefixSearchSubpages(), SpecialUnblock::prefixSearchSubpages(), SpecialNuke::prefixSearchSubpages(), SpecialRenameuser::prefixSearchSubpages(), SpecialEmailUser::prefixSearchSubpages(), SpecialContributions::prefixSearchSubpages(), UserrightsPage::prefixSearchSubpages(), SpecialBlock::prefixSearchSubpages(), Skin::preloadExistence(), WikiPage::prepareContentForEdit(), Article::prepareContentForEdit(), ApiQueryUserContribs::prepareQuery(), ApiQueryBlocks::prepareUsername(), JavaScriptContent::preSaveTransform(), CssContent::preSaveTransform(), WikitextContent::preSaveTransform(), SpecialBlock::processForm(), Preferences::profilePreferences(), MediaWiki\Preferences\DefaultPreferencesFactory::profilePreferences(), MediaWiki\Tests\Revision\RevisionStoreRecordTest::provideConstructor(), MediaWiki\Tests\Revision\RevisionArchiveRecordTest::provideConstructor(), MediaWiki\Tests\Revision\RevisionArchiveRecordTest::provideConstructorFailure(), MediaWiki\Tests\Revision\RevisionStoreRecordTest::provideConstructorFailure(), RevisionDbTestBase::provideInsertOn_exceptionOnIncomplete(), MediaWiki\Tests\Revision\RevisionStoreDbTestBase::provideNonHistoryRevision(), MediaWiki\Tests\Revision\MutableRevisionRecordTest::provideNotReadyForInsertion(), CaptchaPreAuthenticationProviderTest::provideTestForAccountCreation(), ApiStashEdit::pruneExcessStashedEntries(), Title::quickUserCan(), Preferences::rcPreferences(), MediaWiki\Preferences\DefaultPreferencesFactory::rcPreferences(), RebuildRecentchanges::rebuildRecentChangesTablePass1(), RebuildRecentchanges::rebuildRecentChangesTablePass3(), Autopromote::recCheckCondition(), PatrolLog::record(), SpecialWatchlist::registerFilters(), SpecialRecentChanges::registerFilters(), OATHUserRepository::remove(), WatchedItemStore::removeWatchBatchForUser(), RenameuserSQL::rename(), Preferences::renderingPreferences(), MediaWiki\Preferences\DefaultPreferencesFactory::renderingPreferences(), WatchedItemStore::resetAllNotificationTimestampsForUser(), WatchedItemStore::resetNotificationTimestamp(), ChangesList::revDateLink(), AssembleUploadChunksJob::run(), PublishStashedFileJob::run(), ApiQueryDeletedRevisions::run(), ApiQueryAllDeletedRevisions::run(), ApiQueryWatchlistRaw::run(), ApiQueryWatchlist::run(), ApiQueryRevisions::run(), ApiQueryRecentChanges::run(), EditPage::runPostMergeFilters(), ApiTokensTest::runTokenTest(), ProtectionForm::save(), RecentChange::save(), MediaWiki\Preferences\DefaultPreferencesFactory::saveFormData(), SpecialSearch::saveNamespaces(), UserrightsPage::saveUserGroups(), UserNamePrefixSearch::search(), Preferences::searchPreferences(), MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProvider::sendNewAccountEmail(), MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProvider::sendPasswordResetEmail(), MediaWiki\Session\CookieSessionProvider::sessionDataToExport(), Block::setBlocker(), DataUpdate::setCause(), MediaWiki\Auth\AuthManager::setDefaultUserOptions(), EditPage::setHeaders(), PreferencesFormOOUI::setModifiedUser(), WatchedItemStore::setNotificationTimestampsForUser(), Article::setOldSubtitle(), MediaWiki\Auth\AuthManager::setSessionDataForUser(), LoginSignupSpecialPage::setSessionUserForCurrentRequest(), SpecialWatchlist::setTopText(), CssContentTest::setUp(), TextContentTest::setUp(), PageArchiveTestBase::setUp(), ParserOptions::setupFakeRevision(), ApiLoginTest::setUpForBotPassword(), ApiQueryWatchlistIntegrationTest::setupPatrolledSpecificFixtures(), SkinTemplate::setupTemplateForOutput(), MediaWiki\Session\Session::setUser(), Revision\MutableRevisionRecord::setUser(), Revision::setUserIdAndName(), ApiComparePages::setVals(), RevDelList::setVisibility(), SimpleCaptcha::shouldCheck(), MultimediaViewerHooks::shouldHandleClicks(), EditAction::show(), PurgeAction::show(), SpecialTags::showActivateDeactivateForm(), Article::showDeletedRevisionHeader(), SpecialTags::showDeleteTagForm(), EditPage::showDiff(), RCCacheEntryFactory::showDiffLinks(), DifferenceEngine::showDiffPage(), Article::showDiffPage(), EditPage::showEditForm(), UserrightsPage::showEditUserGroupsForm(), SpecialUndelete::showFileConfirmationForm(), MovePageForm::showForm(), SpecialImport::showForm(), EditPage::showHeader(), SpecialExpandTemplates::showHtmlPreview(), EditPage::showIntro(), LogEventsList::showLogExtract(), UserrightsPage::showLogFragment(), Article::showMissingArticle(), LogEventsList::showOptions(), Article::showPatrolFooter(), EmailConfirmation::showRequestForm(), SpecialUndelete::showRevision(), ChangeTags::showTagEditingUI(), SpecialTags::showTagList(), UserOptionsMaintenance::showUsageStats(), SpecialUpload::showViewDeletedLinks(), Preferences::skinPreferences(), MediaWiki\Preferences\DefaultPreferencesFactory::skinPreferences(), UploadFromChunks::stashFile(), ApiStashEdit::storeStashValue(), WebInstallerName::submit(), SpecialPreferences::submitReset(), MssqlInstaller::submitSettingsForm(), SpecialChangeCredentials::success(), SpecialCreateAccount::successfulAction(), SpecialUserLogin::successfulAction(), MediaWiki\Auth\AbstractPreAuthenticationProviderTest::testAbstractPreAuthenticationProvider(), MediaWiki\Auth\AbstractPrimaryAuthenticationProviderTest::testAbstractPrimaryAuthenticationProvider(), MediaWiki\Auth\AbstractSecondaryAuthenticationProviderTest::testAbstractSecondaryAuthenticationProvider(), MediaWiki\Auth\LocalPasswordPrimaryAuthenticationProviderTest::testAccountCreation(), MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProviderTest::testAccountCreation(), MediaWiki\Auth\AuthManagerTest::testAccountCreation(), MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProviderTest::testAccountCreationEmail(), MediaWiki\Auth\AuthManagerTest::testAccountCreationLogging(), MediaWiki\Auth\AuthManagerTest::testAccountLink(), UserGroupMembershipTest::testAddAndRemoveGroups(), ApiUserrightsTest::testAddAndRemoveGroups(), ApiBaseTest::testAddBlockInfoToStatus(), WatchedItemStoreUnitTest::testAddWatchBatchReturnsTrue_whenGivenEmptyList(), ApiQueryWatchlistIntegrationTest::testAllRevParam(), BlockTest::testAppliesToNamespaceOnPartialNamespaceBlock(), BlockTest::testAppliesToPageOnPartialPageBlock(), BlockTest::testAppliesToReturnsTrueOnSitewideBlock(), BlockTest::testAppliesToTitleOnPartialBlock(), BlockTest::testAppliesToTitleReturnsTrueOnSitewideBlock(), ApiMainTest::testAssert(), ApiMainTest::testAssertUser(), MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProviderTest::testAuthentication(), MediaWiki\Auth\AuthManagerTest::testAuthentication(), MediaWiki\Auth\AuthManagerTest::testAutoAccountCreation(), MediaWiki\Auth\AuthManagerTest::testAutoCreateOnLogin(), ApiLoginTest::testBadPass(), ApiLoginTest::testBadToken(), MediaWiki\Auth\CheckBlocksSecondaryAuthenticationProviderTest::testBasics(), MediaWiki\Auth\ResetPasswordSecondaryAuthenticationProviderTest::testBasics(), MediaWiki\Auth\LocalPasswordPrimaryAuthenticationProviderTest::testBasics(), BotPasswordTest::testBasics(), MediaWiki\Auth\AuthManagerTest::testBeginAccountLink(), MediaWiki\Auth\AuthManagerTest::testBeginAuthentication(), MediaWiki\Auth\ConfirmLinkSecondaryAuthenticationProviderTest::testBeginLinkAttempt(), MediaWiki\Auth\ConfirmLinkSecondaryAuthenticationProviderTest::testBeginSecondaryAccountCreation(), MediaWiki\Auth\ConfirmLinkSecondaryAuthenticationProviderTest::testBeginSecondaryAuthentication(), ApiUserrightsTest::testBlockedWithoutUserrights(), BlockTest::testBlocksOnXff(), MediaWiki\Tests\EditPage\TextboxBuilderTest::testBuildTextboxAttribs(), NewUsersLogFormatterTest::testByemailLogDatabaseRows(), ActionTest::testCanExecute(), ActionTest::testCanExecuteNoRight(), ActionTest::testCanExecuteRequiresUnblock(), CaptchaTest::testCanSkipCaptchaMailconfirmed(), CaptchaTest::testCanSkipCaptchaUserright(), ApiQueryRecentChangesIntegrationTest::testCategorizeTypeParameter(), ApiQueryWatchlistIntegrationTest::testCategorizeTypeParameter(), MediaWiki\Auth\AuthManagerTest::testCheckAccountCreatePermissions(), CentralIdLookupTest::testCheckAudience(), ApiStashEditTest::testCheckCache(), ApiStashEditTest::testCheckCacheAnon(), ApiStashEditTest::testCheckCacheInterveningEdits(), ApiStashEditTest::testCheckCacheOldNoEdits(), ApiStashEditTest::testCheckCacheOldNoEditsAnon(), EditPageTest::testCheckDirectEditingDisallowed_forNonTextContent(), FormSpecialPageTestCase::testCheckExecutePermissionsPartialBlock(), FormSpecialPageTestCase::testCheckExecutePermissionsSitewideBlock(), PasswordPolicyChecksTest::testCheckNotInLargeBlacklist(), PasswordPolicyChecksTest::testCheckPopularPasswordBlacklist(), MediaWiki\Session\BotPasswordSessionProviderTest::testCheckSessionInfo(), UserPasswordPolicyTest::testCheckUserPassword(), UserPasswordPolicyTest::testCheckUserPassword_blacklist(), MediaWiki\Session\SessionTest::testClear(), ApiClearHasMsgTest::testClearFlag(), SpecialEditWatchlistTest::testClearPage_hasClearButtonForm(), WatchedItemStoreUnitTest::testClearWatchedItems(), WatchedItemStoreUnitTest::testClearWatchedItems_tooManyItemsWatched(), ApiQueryWatchlistIntegrationTest::testCommentPropParameter(), MediaWiki\Tests\Storage\PageUpdaterTest::testCompareAndSwapFailure(), MediaWiki\Tests\Revision\RevisionArchiveRecordTest::testConstructorAndGetters(), MediaWiki\Tests\Revision\RevisionStoreRecordTest::testConstructorAndGetters(), MediaWiki\Tests\Revision\RevisionArchiveRecordTest::testConstructorFailure(), MediaWiki\Tests\Revision\RevisionStoreRecordTest::testConstructorFailure(), MediaWiki\Auth\AuthManagerTest::testContinueAccountLink(), MediaWiki\Auth\ConfirmLinkSecondaryAuthenticationProviderTest::testContinueLinkAttempt(), ApiQueryWatchlistIntegrationTest::testContinueParam(), MediaWiki\Auth\ConfirmLinkSecondaryAuthenticationProviderTest::testContinueSecondaryAccountCreation(), MediaWiki\Auth\ConfirmLinkSecondaryAuthenticationProviderTest::testContinueSecondaryAuthentication(), MediaWiki\Session\CookieSessionProviderTest::testCookieData(), WatchedItemStoreUnitTest::testCountUnreadNotifications(), WatchedItemStoreUnitTest::testCountUnreadNotifications_withUnreadLimit_overLimit(), WatchedItemStoreUnitTest::testCountUnreadNotifications_withUnreadLimit_underLimit(), WatchedItemStoreUnitTest::testCountWatchedItems(), BlockTest::testCrappyCrossWikiBlocks(), NewUsersLogFormatterTest::testCreate2LogDatabaseRows(), LinkRendererFactoryTest::testCreateForUser(), MediaWiki\Auth\AuthManagerTest::testCreateFromLogin(), MediaWiki\Tests\Storage\PageUpdaterTest::testCreatePage(), EditPageTest::testCreatePage(), EditPageTest::testCreatePageTrx(), ApiDeleteTest::testDeleteUnwatch(), ApiDeleteTest::testDeleteWatch(), ApiDeleteTest::testDeletionWithoutPermission(), ApiLoginTest::testDeprecatedUserLogin(), ApiComparePagesTest::testDiff(), ApiQueryWatchlistIntegrationTest::testDirParams(), SpecialRedirectTest::testDispatch(), WikiPageDbTestBase::testDoDeleteArticleReal_suppress(), WikiPageDbTestBase::testDoDeleteArticleReal_userSysop(), WikiPageDbTestBase::testDoDeleteUpdates(), WikiPageDbTestBase::testDoEditUpdates(), MediaWiki\Tests\Storage\DerivedPageDataUpdaterTest::testDoParserCacheUpdate(), WatchActionTest::testDoWatchOrUnwatchSkipsIfAlreadyUnWatched(), WatchActionTest::testDoWatchOrUnwatchSkipsIfAlreadyWatched(), WatchActionTest::testDoWatchOrUnwatchUnwatchesIfUnwatch(), WatchActionTest::testDoWatchOrUnwatchUserNotLoggedIn(), WatchActionTest::testDoWatchOrUnwatchWatchesIfWatch(), WatchedItemStoreIntegrationTest::testDuplicateAllAssociatedEntries(), SpecialEditWatchlistTest::testEditRawPage_hasTitlesBox(), ApiEditPageTest::testEditUnwatch(), ApiEditPageTest::testEditWatch(), DefaultPreferencesFactoryTest::testEmailAuthentication(), ApiQueryRecentChangesIntegrationTest::testEmptyPropParameter(), ApiQueryWatchlistIntegrationTest::testEmptyPropParameter(), ApiBaseTest::testErrorArrayToStatus(), ApiQueryWatchlistIntegrationTest::testExcludeUserParam(), ApiQueryRecentChangesIntegrationTest::testExternalTypeParameters(), ApiQueryWatchlistIntegrationTest::testExternalTypeParameters(), MediaWiki\Tests\Storage\PageUpdaterTest::testFailureOnBadContentModel(), MediaWiki\Tests\Storage\PageUpdaterTest::testFailureOnEditFlags(), SpecialWatchlistTest::testFetchOptionsFromRequest(), ApiQueryWatchlistIntegrationTest::testFlagsPropParameter(), SpamBlacklistPreAuthenticationProvider::testForAccountCreation(), TitleBlacklistPreAuthenticationProvider::testForAccountCreation(), CaptchaPreAuthenticationProvider::testForAccountCreation(), MediaWiki\Auth\LocalPasswordPrimaryAuthenticationProvider::testForAccountCreation(), MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProvider::testForAccountCreation(), WikiMapTest::testForeignUserLink(), CoreParserFunctionsTest::testGender(), ApiQueryWatchlistIntegrationTest::testGeneratorWatchlistPropInfo_returnsWatchedPages(), ApiQueryWatchlistIntegrationTest::testGeneratorWatchlistPropRevisions_returnsWatchedItemsRevisions(), MediaWiki\Tests\Storage\DerivedPageDataUpdaterTest::testGetCanonicalParserOptions(), MediaWiki\Tests\Revision::testGetComment_audience(), MediaWiki\Tests\Revision::testGetContent_audience(), MediaWiki\Auth\AbstractPasswordPrimaryAuthenticationProviderTest::testGetNewPasswordExpiry(), WatchedItemStoreUnitTest::testGetNotificationTimestampsBatch_allItemsCached(), WatchedItemStoreUnitTest::testGetNotificationTimestampsBatch_cachedItem(), UserPasswordPolicyTest::testGetPoliciesForUser(), MediaWiki\Tests\Storage\DerivedPageDataUpdaterTest::testGetPreparedEditAfterPrepareContent(), PageArchiveTestBase::testGetPreviousRevision(), MediaWiki\Tests\Storage\DerivedPageDataUpdaterTest::testGetSecondaryDataUpdatesAfterPrepareContent(), MediaWiki\Tests\Storage\DerivedPageDataUpdaterTest::testGetSecondaryDataUpdatesWithSlotRemoval(), MediaWiki\Tests\Revision::testGetSlot_audience(), MediaWiki\Tests\Revision\RevisionStoreRecordTest::testGetSlot_audience_latest(), ApiTokensTest::testGettingToken(), WatchActionTest::testGetUnwatchToken(), MediaWiki\Tests\Revision::testGetUser_audience(), WatchedItemQueryServiceUnitTest::testGetWatchedItemsForUser(), WatchedItemStoreUnitTest::testGetWatchedItemsForUser(), WatchedItemQueryServiceUnitTest::testGetWatchedItemsForUser_fromUntilStartFromOptions(), WatchedItemQueryServiceUnitTest::testGetWatchedItemsForUser_optionsAndEmptyResult(), WatchedItemStoreUnitTest::testGetWatchedItemsForUser_optionsAndEmptyResult(), WatchedItemQueryServiceUnitTest::testGetWatchedItemsWithRecentChangeInfo(), WatchedItemQueryServiceUnitTest::testGetWatchedItemsWithRecentChangeInfo_allRevisionsOptionAndEmptyResult(), WatchedItemQueryServiceUnitTest::testGetWatchedItemsWithRecentChangeInfo_extension(), WatchedItemQueryServiceUnitTest::testGetWatchedItemsWithRecentChangeInfo_filterPatrolledAndUserWithNoPatrolRights(), WatchedItemQueryServiceUnitTest::testGetWatchedItemsWithRecentChangeInfo_invalidOptions(), WatchedItemQueryServiceUnitTest::testGetWatchedItemsWithRecentChangeInfo_mysqlIndexOptimization(), WatchedItemQueryServiceUnitTest::testGetWatchedItemsWithRecentChangeInfo_optionsAndEmptyResult(), WatchedItemQueryServiceUnitTest::testGetWatchedItemsWithRecentChangeInfo_usedInGeneratorAllRevisionsOptions(), WatchedItemQueryServiceUnitTest::testGetWatchedItemsWithRecentChangeInfo_usedInGeneratorOptionAndEmptyResult(), WatchedItemQueryServiceUnitTest::testGetWatchedItemsWithRecentChangeInfo_userPermissionRelatedExtraChecks(), WatchedItemQueryServiceUnitTest::testGetWatchedItemsWithRecentChangeInfo_watchlistOwnerAndInvalidToken(), WatchedItemQueryServiceUnitTest::testGetWatchedItemsWithRecentChangeInfo_watchlistOwnerOptionAndEmptyResult(), WatchActionTest::testGetWatchTokenNormalizesToWatch(), WatchActionTest::testGetWatchTokenProxiesUserGetEditToken(), ApiLoginTest::testGoodPass(), ApiLoginTest::testGotCookie(), ApiRevisionDeleteTest::testHidingRevisions(), MWTimestampTest::testHumanTimestamp(), ApiQueryWatchlistIntegrationTest::testIdsPropParameter(), RequestContextTest::testImportScopedSession(), BlockTest::testINewFromIDReturnsCorrectBlock(), BlockTest::testINewFromTargetReturnsCorrectBlock(), MediaWiki\Tests\Storage\PageUpdaterTest::testInheritSlot(), ActorMigrationTest::testInsertRoundTrip(), ActorMigrationTest::testInsertUserIdentity(), DefaultPreferencesFactoryTest::testIntvalFilter(), MediaWiki\Session\SessionManagerTest::testInvalidateSessionsForUser(), PasswordResetTest::testIsAllowed(), ApiQueryWatchlistIntegrationTest::testLimitParam(), ApiQueryWatchlistIntegrationTest::testListWatchlist_returnsWatchedItemsWithRCInfo(), CentralIdLookupTest::testLocalUserFromCentralId(), ApiUploadTest::testLogin(), ApiQueryWatchlistIntegrationTest::testLogTypeParameters(), MediaWiki\Tests\Storage\PageUpdaterTest::testMagicWords(), MovePageTest::testMoveAbortedByTitleMoveHook(), ApiMoveTest::testMoveNoPermission(), ApiQueryWatchlistIntegrationTest::testNamespaceParam(), ApiQueryWatchlistIntegrationTest::testNewAndEditTypeParameters(), ParserOptionsTest::testNewCanonical(), RCCacheEntryFactoryTest::testNewForDeleteChange(), RCCacheEntryFactoryTest::testNewForRevUserDeleteChange(), MediaWiki\Session\UserInfoTest::testNewFromId(), MediaWiki\Session\UserInfoTest::testNewFromName(), RCCacheEntryFactoryTest::testNewFromRecentChange(), MailAddressTest::testNewFromUser(), MediaWiki\Session\UserInfoTest::testNewFromUser(), MediaWiki\Tests\Revision\RevisionStoreDbTestBase::testNewNullRevision(), MediaWiki\Session\BotPasswordSessionProviderTest::testNewSessionInfoForRequest(), RCFeedIntegrationTest::testNotify(), ApiQueryWatchlistIntegrationTest::testParsedCommentPropParameter(), ApiQueryWatchlistIntegrationTest::testPatrolPropParameter(), MediaWiki\Session\ImmutableSessionProviderWithCookieTest::testPersistSession(), MediaWiki\Session\CookieSessionProviderTest::testPersistSession(), MediaWiki\Session\CookieSessionProviderTest::testPersistSessionWithHook(), CaptchaPreAuthenticationProviderTest::testPingLimiter(), MediaWiki\Auth\UserDataAuthenticationRequestTest::testPopulateUser(), CaptchaPreAuthenticationProviderTest::testPostAuthentication(), CaptchaPreAuthenticationProviderTest::testPostAuthentication_disabled(), DefaultPreferencesFactoryTest::testPreferencesFormPreSaveHookHasCorrectData(), WikiPageDbTestBase::testPrepareContentForEdit(), MediaWiki\Tests\Storage\DerivedPageDataUpdaterTest::testPrepareUpdateOutputReset(), MediaWiki\Tests\Storage\DerivedPageDataUpdaterTest::testPrepareUpdateReusesParserOutput(), ParserMethodsTest::testPreSaveTransform(), MediaWiki\Auth\AbstractPrimaryAuthenticationProviderTest::testPrimaryAccountLink(), MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProviderTest::testProviderAllowsAuthenticationDataChange(), MediaWiki\Auth\LocalPasswordPrimaryAuthenticationProviderTest::testProviderAllowsAuthenticationDataChange(), MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProviderTest::testProviderChangeAuthenticationData(), MediaWiki\Auth\LocalPasswordPrimaryAuthenticationProviderTest::testProviderChangeAuthenticationData(), MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProviderTest::testProviderChangeAuthenticationDataEmail(), MediaWiki\Session\CookieSessionProviderTest::testProvideSessionInfo(), MediaWiki\Auth\CheckBlocksSecondaryAuthenticationProviderTest::testRangeBlock(), ChangesListSpecialPageTest::testRcHidebyothersFilter(), ChangesListSpecialPageTest::testRcHidebyothersFilter_old(), ChangesListSpecialPageTest::testRcHidemyselfFilter(), ChangesListSpecialPageTest::testRcHidemyselfFilter_old(), ChangesListSpecialPageTest::testRcHidepatrolledDisabledFilter(), ChangesListSpecialPageTest::testRcHidepatrolledFilter(), ChangesListSpecialPageTest::testRcHideunpatrolledDisabledFilter(), ChangesListSpecialPageTest::testRcHideunpatrolledFilter(), ChangesListSpecialPageTest::testRcReviewStatusFilter(), MWTimestampTest::testRelativeTimestamp(), MediaWiki\Session\SessionBackendTest::testRenew(), SpecialPageTest::testRequireLoginAnon(), SpecialPageTest::testRequireLoginNotAnon(), WatchedItemStoreUnitTest::testResetNotificationTimestamp_futureNotificationTimestampForced(), WatchedItemStoreUnitTest::testResetNotificationTimestamp_futureNotificationTimestampNotForced(), WatchedItemStoreUnitTest::testResetNotificationTimestamp_item(), WatchedItemStoreUnitTest::testResetNotificationTimestamp_noItemForced(), WatchedItemStoreUnitTest::testResetNotificationTimestamp_notWatchedPageForced(), WatchedItemStoreUnitTest::testResetNotificationTimestamp_oldidSpecifiedLatestRevisionForced(), WatchedItemStoreUnitTest::testResetNotificationTimestamp_oldidSpecifiedNotLatestRevisionForced(), SpecialEditWatchlistTest::testRootPage_displaysExplanationMessage(), ClearUserWatchlistJobTest::testRun(), MediaWiki\Session\SessionBackendTest::testSave(), MediaWiki\Auth\AuthManagerTest::testSecuritySensitiveOperationStatus(), MediaWiki\Auth\AuthManagerTest::testSetDefaultUserOptions(), MediaWiki\Tests\Revision\MutableRevisionRecordTest::testSetGetUser(), WatchedItemStoreUnitTest::testSetNotificationTimestampsForUser_allRows(), WatchedItemStoreUnitTest::testSetNotificationTimestampsForUser_nullTimestamp(), WatchedItemStoreUnitTest::testSetNotificationTimestampsForUser_specificTargets(), MediaWiki\Auth\LocalPasswordPrimaryAuthenticationProviderTest::testSetPasswordResetFlag(), MediaWiki\Tests\Storage\PageUpdaterTest::testSetRcPatrolStatus(), MediaWiki\Tests\Storage\PageUpdaterTest::testSetUseAutomaticEditSummaries(), MediaWiki\Tests\Storage\PageUpdaterTest::testSetUsePageCreationLog(), MediaWiki\Session\SessionBackendTest::testSetUser(), ApiQueryWatchlistIntegrationTest::testShowAnonParams(), ApiQueryWatchlistIntegrationTest::testShowBotParams(), ApiQueryWatchlistIntegrationTest::testShowMinorParams(), ApiQueryWatchlistIntegrationTest::testShowPatrolledParams(), ApiQueryWatchlistIntegrationTest::testShowUnreadParams(), ApiQueryWatchlistIntegrationTest::testSizesPropParameter(), ApiQueryUserContribsTest::testSorting(), SpecialPageFatalTest::testSpecialPageDoesNotFatal(), ApiPageSetTest::testSpecialRedirects(), ApiQueryWatchlistIntegrationTest::testStartEndParams(), ApiSetNotificationTimestampIntegrationTest::testStuff(), BlockTest::testSystemBlocks(), BlockTest::testT28425BlockTimestampDefaultsToTime(), BlockTest::testT31116NewFromTargetWithEmptyIp(), SpecialPreferencesTest::testT43337(), TemplateCategoriesTest::testTemplateCategories(), ArticleTablesTest::testTemplatelinksUsesContentLanguage(), MediaWiki\Auth\ThrottlePreAuthenticationProviderTest::testTestForAccountCreation(), CaptchaPreAuthenticationProviderTest::testTestForAccountCreation(), MediaWiki\Auth\LocalPasswordPrimaryAuthenticationProviderTest::testTestForAccountCreation(), MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProviderTest::testTestForAccountCreation(), CaptchaPreAuthenticationProviderTest::testTestForAuthentication(), MediaWiki\Auth\LocalPasswordPrimaryAuthenticationProviderTest::testTestUserCanAuthenticate(), MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProviderTest::testTestUserCanAuthenticate(), MediaWiki\Auth\CheckBlocksSecondaryAuthenticationProviderTest::testTestUserForCreation(), ApiQueryWatchlistIntegrationTest::testTimestampPropParameter(), ApiQueryWatchlistIntegrationTest::testTitlePropParameter(), MediaWiki\Auth\ResetPasswordSecondaryAuthenticationProviderTest::testTryReset(), ApiRevisionDeleteTest::testUnhidingOutput(), ImportTest::testUnknownUserHandling(), BotPasswordTest::testUnsaved(), ApiLoginTest::testUnsupportedAuthResponseType(), WatchedItemStoreUnitTest::testUpdateNotificationTimestamp_clearsCachedItems(), MediaWiki\Tests\Storage\PageUpdaterTest::testUpdatePage(), EditPageTest::testUpdatePage(), EditPageTest::testUpdatePageTrx(), WatchedItemStoreIntegrationTest::testUpdateResetAndSetNotificationTimestamp(), RevisionDbTestBase::testUserCan(), MediaWiki\Tests\Revision::testUserCanBitfield(), RevisionDbTestBase::testUserCanBitfield(), TitleBlacklistPreAuthenticationProvider::testUserForCreation(), MediaWiki\Auth\CheckBlocksSecondaryAuthenticationProvider::testUserForCreation(), ApiQueryRecentChangesIntegrationTest::testUserIdPropParameter(), ApiQueryWatchlistIntegrationTest::testUserIdPropParameter(), ApiQueryWatchlistIntegrationTest::testUserParam(), ApiQueryWatchlistIntegrationTest::testUserPropParameter(), SpecialWatchlistTest::testUserWithNoWatchedItems_displaysNoWatchlistMessage(), AbstractChangesListSpecialPageTestCase::testValidateOptions(), ArticleViewTest::testViewMissingUserPage(), ArticleViewTest::testViewUserPageOfNonexistingUser(), WatchedItemStoreIntegrationTest::testWatchAndUnWatchItem(), WatchedItemStoreIntegrationTest::testWatchBatchAndClearItems(), ApiUserrightsTest::testWebToken(), TitleTest::testWgWhitelistReadRegexp(), ApiUserrightsTest::testWithTag(), EditPage::tokenOk(), Language::translateBlockExpiry(), MediaWiki\Auth\ResetPasswordSecondaryAuthenticationProvider::tryReset(), SpecialRevisionDelete::tryShowFile(), UploadFromChunks::tryStashFile(), WatchedItemStore::uncache(), WatchedItemStore::uncacheAllItemsForUser(), WatchedItemStore::uncacheUser(), PageArchive::undelete(), PageArchive::undeleteRevisions(), ChangeTagsLogList::updateChangeTagsOnAll(), ChangeTagsRevisionList::updateChangeTagsOnAll(), UserOptionsMaintenance::updateOptions(), WikiPage::updateParserCache(), ChangeTags::updateTags(), ChangeTags::updateTagsWithChecks(), ResetUserTokens::updateUser(), EditPage::updateWatchlist(), HTMLFileCache::useFileCache(), TitleBlacklistHooks::userCan(), Revision\RevisionStoreRecord::userCan(), Revision\RevisionRecord::userCan(), LogEventsList::userCan(), ChangesList::userCan(), Revision::userCan(), Title::userCan(), Revision\RevisionRecord::userCanBitfield(), LogEventsList::userCanBitfield(), Revision::userCanBitfield(), SpecialCreateAccount::userCanExecute(), SpecialUpload::userCanExecute(), SpecialUndelete::userCanExecute(), ProxySpecialPage::userCanExecute(), SpecialPage::userCanExecute(), TitleBlacklist::userCannot(), TitleBlacklist::userCanOverride(), SpamBlacklistHooks::userCanSendEmail(), LogEventsList::userCanViewLogType(), Language::userDate(), MysqlInstaller::userDefinitelyExists(), MssqlInstaller::userExists(), CreditsAction::userLink(), SearchEngineConfig::userNamespaces(), SearchEngine::userNamespaces(), ReassignEdits::userSpecification(), Language::userTime(), Language::userTimeAndDate(), Linker::userToolLinks(), HTMLUserTextField::validate(), SpecialBlock::validateTarget(), CaptchaPreAuthenticationProvider::verifyCaptcha(), OATHAuthKey::verifyToken(), Article::view(), Preferences::watchlistPreferences(), MediaWiki\Preferences\DefaultPreferencesFactory::watchlistPreferences(), ApiQueryWatchlistIntegrationTest::watchPages(), ApiWatch::watchTitle(), wfLogProfilingData(), wfStreamThumb(), and UserRightsProxy::whoIs().

◆ $username

this hook is for auditing only or null if authentication failed before getting that far $username

Definition at line 780 of file hooks.txt.

Referenced by UsersPager::__construct(), ActiveUsersPager::__construct(), MediaWiki\Auth\AuthManager::autoCreateUser(), SimpleCaptcha::badLoginPerUserKey(), MediaWiki\Auth\AuthManager::beginAccountCreation(), MediaWiki\Auth\LocalPasswordPrimaryAuthenticationProvider::beginPrimaryAuthentication(), MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProvider::beginPrimaryAuthentication(), CaptchaPreAuthenticationProviderTest::blockLogin(), UsersPager::buildGroupLink(), MediaWiki\Auth\AuthManager::canCreateAccount(), BotPassword::canonicalizeLoginData(), PasswordPolicyChecks::checkPasswordCannotMatchBlacklist(), PasswordPolicyChecks::checkPasswordCannotMatchUsername(), MediaWiki\Auth\AbstractPasswordPrimaryAuthenticationProvider::checkPasswordValidity(), MediaWiki\Auth\Throttler::clear(), ResetAuthenticationThrottle::clearLoginThrottle(), SpecialRedirect::dispatchUser(), GenderCache::doLinkBatch(), UserrightsPage::editUserGroupsForm(), DisableOATHAuthForUser::execute(), ApiUnblock::execute(), ApiBlock::execute(), ImportSiteScripts::execute(), CleanupSpam::execute(), InvalidateUserSesssions::execute(), RollbackEdits::execute(), DeleteBatch::execute(), ResetAuthenticationThrottle::execute(), CreateAndPromote::execute(), PasswordReset::execute(), UserrightsPage::fetchUser(), MediaWiki\Auth\AuthManager::fillRequests(), SpecialNewpages::form(), ProtectedPagesPager::formatValue(), CoreParserFunctions::gender(), CaptchaPreAuthenticationProviderTest::getCaptchaRequest(), SwiftFileBackend::getCredsCacheKey(), GenderCache::getGenderOf(), UserGroupMembership::getGroupMemberName(), TestUserRegistry::getImmutableTestUser(), ExternalUserNames::getLocal(), BlockLogFormatter::getMessageParameters(), SpecialNuke::getNewPages(), MediaWiki\Auth\AbstractPasswordPrimaryAuthenticationProvider::getNewPasswordExpiry(), NewPagesPager::getQueryInfo(), UserArrayFromResultTest::getRowWithUsername(), CategoryMembershipChange::getUser(), DoubleRedirectJob::getUser(), SpecialContributions::getUserLinks(), ResourceLoaderContext::getUserObj(), MediaWiki\Auth\Throttler::increase(), SimpleCaptcha::increaseBadLoginCounter(), ReassignEdits::initialiseUser(), BotPassword::invalidateAllPasswordsForUser(), ExternalUserNames::isExternal(), MediaWiki\Session\SessionManager::isUserSessionPrevented(), SpecialNuke::listForm(), HTMLUsersMultiselectField::loadDataFromRequest(), BotPassword::login(), GenderCache::normalizeUsername(), MediaWiki\Auth\AuthManager::normalizeUsername(), NukeHooks::nukeContributionsLinks(), SpecialPasswordReset::onSubmit(), SpecialBotPasswords::onSuccess(), MediaWiki\Session\Session\BotPasswordSessionProvider::preventSessionsForUser(), MediaWiki\Session\SessionManager::preventSessionsForUser(), MediaWiki\Auth\LocalPasswordPrimaryAuthenticationProvider::providerAllowsAuthenticationDataChange(), MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProvider::providerAllowsAuthenticationDataChange(), MediaWiki\Auth\LocalPasswordPrimaryAuthenticationProvider::providerChangeAuthenticationData(), MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProvider::providerChangeAuthenticationData(), MediaWiki\Auth\AbstractPrimaryAuthenticationProvider::providerNormalizeUsername(), MediaWiki\Auth\AbstractSecondaryAuthenticationProvider::providerRevokeAccessForUser(), MediaWiki\Auth\AbstractPrimaryAuthenticationProvider::providerRevokeAccessForUser(), BotPassword::removeAllPasswordsForUser(), SimpleCaptcha::resetBadLoginCounter(), MediaWiki\Auth\AuthManager::revokeAccessForUser(), MediaWiki\Auth\AbstractPasswordPrimaryAuthenticationProvider::setPasswordResetFlag(), MediaWiki\Tests\Maintenance\TextPassDumperDatabaseTest::setUpStub(), EditPage::showEditForm(), EditPage::showIntro(), SpecialRenameuser::showLogExtract(), MediaWiki\Auth\AuthManagerTest::testAccountCreation(), MediaWiki\Auth\AuthManagerTest::testAccountCreationLogging(), ExternalUserNamesTest::testAddPrefix(), ExternalUserNamesTest::testApplyPrefix(), MediaWiki\Auth\AuthManagerTest::testAutoAccountCreation(), MediaWiki\Auth\AuthManagerTest::testAutoCreateFailOnLogin(), MediaWiki\Auth\AuthManagerTest::testAutoCreateOnLogin(), BlockTest::testBlockedUserCanNotCreateAccount(), MediaWiki\Auth\AuthManagerTest::testCanCreateAccount(), BotPasswordTest::testCanonicalizeLoginData(), UserArrayFromResultTest::testConstructionWithRow(), MediaWiki\Auth\AuthManagerTest::testContinueAccountCreation(), UserArrayFromResultTest::testCurrentAfterConstruction(), CaptchaPreAuthenticationProvider::testForAccountCreation(), CaptchaPreAuthenticationProvider::testForAuthentication(), MediaWiki\Auth\ThrottlePreAuthenticationProvider::testForAuthentication(), TitleBlacklistPreAuthenticationProviderTest::testGetAuthenticationRequests(), CaptchaPreAuthenticationProviderTest::testGetAuthenticationRequests(), ExternalUserNamesTest::testGetLocal(), ExternalUserNamesTest::testGetUserLinkTitle(), ExternalUserNamesTest::testIsExternal(), UserTest::testIsValidUserName(), MediaWiki\Auth\CreateFromLoginAuthenticationRequestTest::testState(), GenderCacheTest::testStripSubpages(), MediaWiki\Auth\AbstractPrimaryAuthenticationProvider::testUserCanAuthenticate(), MediaWiki\Auth\LocalPasswordPrimaryAuthenticationProvider::testUserCanAuthenticate(), MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProvider::testUserCanAuthenticate(), MediaWiki\Auth\LocalPasswordPrimaryAuthenticationProvider::testUserExists(), MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProvider::testUserExists(), GenderCacheTest::testUserName(), GenderCacheTest::testUserObjects(), UserOptionsMaintenance::updateOptions(), ResetUserTokens::updateUser(), MediaWiki\Auth\AuthManager::userCanAuthenticate(), MediaWiki\Auth\AuthManager::userExists(), MediaWiki\Auth\AuthManagerTest::usernameForCreation(), and HTMLUsersMultiselectField::validate().

◆ $vars

configuration should be added through ResourceLoaderGetConfigVars instead& $vars
static

Definition at line 2228 of file hooks.txt.

Referenced by MemcachedClient::_load_items(), ApiResult::addMetadataToResultVars(), IEUrlExtension::areServerVarsBad(), Wikimedia\Rdbms\Database::buildSelectSubquery(), ResourceLoaderFileModule::compileLessFile(), ReplaceTextSearch::doSearchQuery(), WebInstallerExistingWiki::execute(), ConvertExtensionToRegistration::execute(), MediaWiki\Sparql\SparqlClient::extractData(), ResourceLoaderStartUpModule::getConfigSettings(), ApiHelp::getHelpInternal(), ResourceLoaderLessVarFileModule::getLessVars(), WikiEditorHooks::getMagicWords(), ReplaceTextSearch::getMatchingTitles(), OracleInstaller::getSchemaVars(), MysqlUpdater::getSchemaVars(), Wikimedia\Rdbms\DatabaseMysqlBase::getServerUptime(), WebInstallerExistingWiki::handleExistingUpgrade(), ConvertExtensionToRegistration::handleExtensionMessagesFiles(), WebInstallerExistingWiki::importVariables(), Wikimedia\Rdbms\DatabasePostgres::listTables(), Wikimedia\Rdbms\DatabaseSqlite::listTables(), Wikimedia\Rdbms\DatabaseMysqlBase::listTables(), DatabaseUpdater::loadExtensions(), Wikimedia\Rdbms\DatabasePostgres::makeConnectionString(), MultimediaViewerHooks::makeGlobalVariablesScript(), ReCaptchaNoCaptchaHooks::onResourceLoaderGetConfigVars(), CiteHooks::onResourceLoaderGetConfigVars(), Wikimedia\Rdbms\Database::replaceVars(), MultimediaViewerHooks::resourceLoaderGetConfigVars(), WikiEditorHooks::resourceLoaderGetConfigVars(), Wikimedia\Rdbms\DatabaseMssql::select(), Wikimedia\Rdbms\Database::select(), DatabaseOracle::selectRow(), Wikimedia\Rdbms\Database::selectRow(), Wikimedia\Rdbms\DatabaseMssql::selectSQLText(), Wikimedia\Rdbms\DatabasePostgres::selectSQLText(), Wikimedia\Rdbms\Database::selectSQLText(), ResourceLoaderClientHtml::setConfig(), Wikimedia\Rdbms\Database::setSchemaVars(), WebRequestTest::setServerVars(), and Wikimedia\Rdbms\Database::unionConditionPermutations().

◆ $wgCapitalizeTitle

An extension or a 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

Definition at line 51 of file hooks.txt.

Referenced by follows().

◆ $wgHooks

◆ $wgNotifyArticle

An extension or a 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

Definition at line 51 of file hooks.txt.

◆ AbortAutoblock

please add to it if you re going to add events to the MediaWiki code AbortAutoblock

Definition at line 260 of file hooks.txt.

◆ add

you don t have to do a grep find to see where the $wgReverseTitle variable is say If the code is well enough it can even be excluded when not used making for some slight savings in memory and load up performance at runtime Admins who want to have all the reversed titles can add

◆ addition

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

Definition at line 77 of file hooks.txt.

Referenced by RedisLockManager::getLocksOnServer().

◆ admin

An extension or a admin

Definition at line 51 of file hooks.txt.

◆ Alternatively

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

Definition at line 1290 of file hooks.txt.

Referenced by RecountCategories::__construct().

◆ article

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 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 patches for two options in MediaWiki One reverses the order of a title before displaying the article

◆ 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 When $user is not it can be in the form of<username><more info> e g for bot passwords intended to be added to log contexts Fields it might only if the login was with a bot password 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
inline

Definition at line 780 of file hooks.txt.

◆ AutopromoteCondition

this hook is for auditing only or null if authentication failed before getting that far or null if we can t even determine that When $user is not it can be in the form of<username><more info> e g for bot passwords intended to be added to log contexts Fields it might only if the login was with a bot password AutopromoteCondition

Definition at line 780 of file hooks.txt.

◆ becomes

Using a hook running we can avoid having all this option specific stuff in our mainline code Using the function becomes

Definition at line 73 of file hooks.txt.

◆ 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 When $user is not it can be in the form of<username><more info> e g for bot passwords intended to be added to log contexts Fields it might only if the login was with a bot password 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
inline

Definition at line 780 of file hooks.txt.

◆ 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 When $user is not it can be in the form of<username><more info> e g for bot passwords intended to be added to log contexts Fields it might only if the login was with a bot password 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
inline

Definition at line 780 of file hooks.txt.

◆ 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 When $user is not it can be in the form of<username><more info> e g for bot passwords intended to be added to log contexts Fields it might only if the login was with a bot password 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
inline

Definition at line 780 of file hooks.txt.

◆ BitmapHandlerTransform

this hook is for auditing only or null if authentication failed before getting that far or null if we can t even determine that When $user is not it can be in the form of<username><more info> e g for bot passwords intended to be added to log contexts Fields it might only if the login was with a bot password 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
inline

Definition at line 780 of file hooks.txt.

◆ block

div flags Integer display flags (NO_ACTION_LINK,NO_EXTRA_USER_LINKS) 'LogException' returning false will NOT prevent logging a wrapping ErrorException block

◆ 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 When $user is not it can be in the form of<username><more info> e g for bot passwords intended to be added to log contexts Fields it might only if the login was with a bot password 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
inline

Definition at line 780 of file hooks.txt.

◆ BlockIpComplete

this hook is for auditing only or null if authentication failed before getting that far or null if we can t even determine that When $user is not it can be in the form of<username><more info> e g for bot passwords intended to be added to log contexts Fields it might only if the login was with a bot password 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
inline

Definition at line 780 of file hooks.txt.

◆ bolding

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 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

Definition at line 1749 of file hooks.txt.

◆ broken

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

Definition at line 1993 of file hooks.txt.

Referenced by CleanupInvalidDbKeys::__construct(), and CheckLanguageCLI::help().

◆ bugs

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

Definition at line 2635 of file hooks.txt.

◆ check

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

◆ classes

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

◆ code

Apache License January AND DISTRIBUTION Definitions License shall mean the terms and conditions for and distribution as defined by Sections through of this document Licensor shall mean the copyright owner or entity authorized by the copyright owner that is granting the License Legal Entity shall mean the union of the acting entity and all other entities that control are controlled by or are under common control with that entity For the purposes of this definition control direct or to cause the direction or management of such whether by contract or including but not limited to software source documentation and configuration files Object form shall mean any form resulting from mechanical transformation or translation of a Source including but not limited to compiled object code

◆ coloring

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 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

Definition at line 1749 of file hooks.txt.

◆ complete

Returning false makes less sense for events where the action is complete

Definition at line 197 of file hooks.txt.

Referenced by XhprofData::getCompleteMetrics(), and CheckLanguageCLI::help().

◆ conditional

namespace addition is conditional
inline

Definition at line 923 of file hooks.txt.

◆ Consider

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 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 patches Consider

Definition at line 23 of file hooks.txt.

◆ Currently

the other converts the title to all uppercase letters Currently

Definition at line 34 of file hooks.txt.

◆ data

array $mLimitReportData Parser limit report ParserOutput::data

Definition at line 6 of file hooks.txt.

Referenced by DummyNonTextContent::__construct(), DummyContentForTesting::__construct(), Wikimedia\Rdbms\MssqlBlob::__construct(), Wikimedia\Rdbms\Blob::__construct(), ReplacementArray::__construct(), PopulateInterwiki::__construct(), PopulateIpChanges::__construct(), RecountCategories::__construct(), QuickTemplate::__construct(), BackupReader::__construct(), StripState::__construct(), FauxRequest::__construct(), CommentStoreComment::__construct(), CleanupInvalidDbKeys::__construct(), WebRequest::__construct(), Exif::__construct(), MediaWiki\Session\SessionBackend::__construct(), LinkBatch::add(), StripState::addItem(), CaptchaHashStore::clear(), CaptchaHashStore::clearAll(), LinkBatch::constructSet(), JobQueueRedis::doAck(), LinkBatch::doGenderQuery(), VectorTemplate::execute(), MonoBookTemplate::execute(), ZipDirectoryReader::execute(), QuickTemplate::extend(), Wikimedia\Rdbms\MssqlBlob::fetch(), ExternalStoreForTesting::fetchFromURL(), DummyContentForTesting::fillParserOutput(), LCStoreStaticArray::finishWrite(), QuickTemplate::get(), LCStoreStaticArray::get(), TimelessTemplate::getAfterContent(), WebRequest::getArray(), MonoBookTemplate::getCactions(), TimelessTemplate::getContentSub(), ResourceLoaderClientHtml::getData(), BaseTemplate::getFooterLinks(), MonoBookTemplate::getIfExists(), BaseTemplate::getIndicators(), TimelessTemplate::getInterlanguageLinks(), LocalisationCache::getItem(), MonoBookTemplate::getLanguageBox(), TimelessTemplate::getLogo(), TimelessTemplate::getPageTools(), DummyContentForTesting::getParserOutput(), WebRequest::getRawVal(), MonoBookTemplate::getRenderedSidebar(), ApiResult::getResultData(), BaseTemplate::getSidebar(), TimelessTemplate::getSiteNotices(), DummyNonTextContent::getSize(), DummyContentForTesting::getSize(), LinkBatch::getSize(), QuickTemplate::getSkin(), LocalisationCache::getSubitem(), StripState::getSubState(), BaseTemplate::getToolbox(), WebRequest::getVal(), WebRequest::getValues(), QuickTemplate::haveData(), QuickTemplate::html(), LocalisationCache::initLanguage(), LocalisationCache::initShallowFallback(), WebRequest::interpolateTitle(), MessageCache::load(), LocalisationCache::loadItem(), LocalisationCache::loadSubitem(), ReplacementArray::merge(), StripState::merge(), ReplacementArray::mergeArray(), ParserOutputTest::provideGetText(), ResourceLoaderImageModuleTest::providerGetStyleDeclarations(), LocalisationCache::recache(), ReplacementArray::removePair(), VectorTemplate::renderPortals(), ReplacementArray::replace(), ApiResult::reset(), CaptchaHashStore::retrieve(), MediaWiki\Session\SessionBackend::save(), DummyNonTextContent::serialize(), DummyContentForTesting::serialize(), QuickTemplate::set(), LCStoreStaticArray::set(), ReplacementArray::setArray(), LinkBatch::setArray(), ReplacementArray::setPair(), QuickTemplate::setRef(), WebRequest::setVal(), LCStoreStaticArray::startWrite(), CaptchaHashStore::store(), QuickTemplate::text(), LocalisationCacheBulkLoad::trimCache(), LocalisationCache::unload(), WebRequest::unsetVal(), and StripState::unstripType().

◆ deleteAnArticle

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

Definition at line 91 of file hooks.txt.

◆ diff

passed in as a query string parameter to the various URLs constructed here (i.e. $nextlink) $rdel also included in $oldHeader indicating whether we should show just the diff

◆ do

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

Definition at line 190 of file hooks.txt.

◆ e

◆ 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 EditPageCopyrightWarning

Definition at line 1423 of file hooks.txt.

◆ 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 EditPageGetCheckboxesDefinition

Definition at line 1423 of file hooks.txt.

◆ EmailConfirmed

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

Definition at line 1423 of file hooks.txt.

◆ error

◆ errors

◆ etc

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

◆ event

and how to run hooks for an event
Initial value:
==Glossary==
event
Something that happens with the wiki. For example: a user logs in. A wiki
page is saved. A wiki page is deleted. Often there are two events
associated with a single action: one before the code is run to make the
event happen

Definition at line 4 of file hooks.txt.

◆ example

An extension or a will often add custom code to the function with or without a global variable For example

Definition at line 6 of file hooks.txt.

◆ exportArticle

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

Definition at line 91 of file hooks.txt.

◆ false

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 false
inline

Definition at line 187 of file hooks.txt.

Referenced by LinksDeletionUpdate::__construct(), ThumbnailImage::__construct(), MemcachedPeclBagOStuff::__construct(), ReplicatedBagOStuff::__construct(), ChangesListSpecialPage::__construct(), MemcachedBagOStuff::applyDefaultParams(), IPTest::assertFalseCIDR(), Wikimedia\Rdbms\Database::attributesFromType(), SkinTemplate::buildContentNavigationUrls(), ProtectionForm::buildForm(), SkinTemplate::buildPersonalUrls(), SpecialEditWatchlist::buildTools(), BagOStuff::changeTTL(), MediaWiki\Tests\Maintenance\DumpTestCase::checkHasGzip(), MediaWiki\Permissions\PermissionManager::checkUserBlock(), Block::chooseBlock(), Wikimedia\Rdbms\LoadBalancer::commitMasterChanges(), WikiPage::commitRollback(), CopyFileBackend::copyFileBatch(), NaiveForeignTitleFactory::createForeignTitle(), SpecialReplaceText::createJobsForTextReplacements(), CssContentTest::dataEquals(), JavaScriptContentTest::dataEquals(), TextContentTest::dataEquals(), WikitextContentTest::dataEquals(), ChangeTagsTest::dataGetSoftwareTags(), JavaScriptContentTest::dataIsCountable(), TextContentTest::dataIsEmpty(), WikitextContentHandlerTest::dataIsSupportedFormat(), ContentHandlerTest::dataMakeContent(), ApiQuerySiteinfoTest::dbReplLagProvider(), LocalFile::delete(), SiteStatsInit::doAllAndCommit(), CategoryViewer::doCategoryQuery(), JobQueueRedis::doDelete(), RESTBagOStuff::doGet(), SqlBagOStuff::doGet(), WANObjectCache::doGetWithSetCallback(), PostgresUpdater::dropDefault(), MediaWiki\Tests\Block\BlockRestrictionStoreTest::equalsDataProvider(), SpecialRenameuser::execute(), ApiEditPage::execute(), FindMissingFiles::execute(), WebInstallerInstall::execute(), SpecialContributions::execute(), SpecialListGroupRights::execute(), SpecialTags::execute(), RefreshLinks::execute(), PasswordReset::execute(), MediaWiki\Storage\SqlBlobStore::expandBlob(), LogFormatter::extractParameters(), ExternalStoreDB::fetchBlob(), WikitextContent::fillParserOutput(), RepoGroup::findFile(), ApiCSPReport::getAllowedParams(), ApiQueryAllDeletedRevisions::getAllowedParams(), CreditsAction::getAuthor(), User::getBlockId(), Wikimedia\Rdbms\Database::getCacheSetOptions(), User::getCanonicalName(), RedisConnectionPool::getConnection(), RedisBagOStuff::getConnection(), Wikimedia\Rdbms\LoadBalancer::getConnection(), FileBackendStore::getContainerHashLevels(), Wikimedia\Rdbms\LBFactoryMulti::getDBNameAndPrefix(), SwiftFileBackend::getDirListPageInternal(), WANCacheReapUpdate::getEventAffectedKeys(), SpecialBlock::getFormFields(), McrUndoAction::getFormFields(), Block::getIdFromCookieValue(), WebInstaller::getInfoBox(), MachineReadableRCFeedFormatter::getLine(), SearchIndexFieldTest::getMergeCases(), NewUsersLogFormatter::getMessageParameters(), WANObjectCacheTest::getMultiWithSetCallback_provider(), WANObjectCacheTest::getMultiWithUnionSetCallback_provider(), SpecialNuke::getNewPages(), BackupReader::getNsIndex(), FSFile::getProps(), NewPagesPager::getQueryInfo(), Revision\RevisionStore::getRecentChange(), WikitextContent::getRedirectTargetAndText(), WfStringToBoolTest::getTestCases(), TextPassDumper::getTextDb(), MediaHandler::getThumbType(), Revision\RevisionStore::getTitle(), LogEventsList::getTitleInputDesc(), CategoryMembershipChange::getUser(), WatchedItemStore::getWatchedItemsForUser(), WatchedItemQueryService::getWatchedItemsWithRecentChangeInfo(), WANObjectCacheTest::getWithSetCallback_provider(), WANObjectCacheTest::getWithSetCallback_versions_provider(), TitleValueTest::goodConstructorProvider(), ApiQuerySiteinfoTest::groupsProvider(), FileBackendGroup::guessMimeInternal(), ApiMain::handleApiBeforeMainException(), MediaWiki\Session\SessionProvider::hashToSessionId(), HistoryPager::historyLine(), ImportableOldRevisionImporter::import(), ImportableUploadRevisionImporter::import(), FileCacheBase::incrMissesRecent(), ChangesList::insertComment(), EditPage::internalAttemptSave(), CoreParserFunctions::intFunction(), ExternalStoreDB::isReadOnly(), Title::isSubpage(), ApiMain::lacksSameOriginSecurity(), InputBox::languageConvert(), MediaWiki\Session\SessionManager::loadSessionInfoFromStore(), Linker::makeBrokenImageLinkObj(), MediaWikiTestCase::makeTestConfig(), LogFormatter::makeUserLink(), MagicWordArray::matchVariableStartToEnd(), BagOStuff::mergeViaCas(), moveToExternal(), RefreshLinks::namespaceCond(), RCCacheEntryFactory::newFromRecentChange(), XmlTypeCheck::newFromString(), UnregisteredLocalFile::newFromTitle(), MediaWiki\Storage\BlobStoreFactory::newSqlBlobStore(), MediaWikiPageNameNormalizerTest::normalizePageTitleProvider(), CoreParserFunctions::ns(), WikiPage::onArticleDelete(), SpecialUploadStash::outputLocallyScaledThumb(), Wikimedia\Rdbms\LoadBalancer::pickReaderIndex(), Wikimedia\Rdbms\Database::ping(), SpecialBlock::postText(), Preprocessor_Hash::preprocessToObj(), LogFormatterTest::provideApiParamFormatting(), GlobalTest::provideArrayToCGI(), ApiMainTest::provideAssert(), CaptchaTest::provideAttributeOverwritten(), CaptchaTest::provideAttributeSet(), MediaWiki\Tests\Revision::provideAudienceCheckData(), SpecialPageTest::provideBuildPrevNextNavigation(), TitleTest::provideCanHaveTalkPage(), BotPasswordTest::provideCanonicalizeLoginData(), CaptchaTest::provideCanSkipCaptchaMailconfirmed(), CaptchaTest::provideCanSkipCaptchaUserright(), JavaScriptMinifierTest::provideCases(), WikiCategoryPageTest::provideCategoryContent(), RecentChangeTest::provideCategoryContent(), DatabaseMysqlBaseTest::provideChannelPositions(), MWRestrictionsTest::provideCheckIP(), DatabaseMysqlBaseTest::provideComparePositions(), MediaWiki\Session\CookieSessionProviderTest::provideCookieData(), SearchEngineTest::provideDataForParseNamespacePrefix(), MediaWiki\Tests\Storage\SqlBlobStoreTest::provideDecompress(), RevisionTest::provideDecompressRevisionText(), DatabaseMysqlBaseTest::provideDiapers(), ApiLoginTest::provideEnableBotPasswords(), TitleTest::provideEquals(), ExtensionRegistryTest::provideExportExtractedDataGlobals(), EditPageTest::provideExtractSectionTitle(), WebRequestTest::provideFuzzyBool(), ApiFormatNoneTest::provideGeneralEncoding(), GlobalVarConfigTest::provideGet(), CaptchaPreAuthenticationProviderTest::provideGetAuthenticationRequests(), UserTest::provideGetCanonicalName(), TitleTest::provideGetPageViewLanguage(), ApiBaseTest::provideGetParameterFromSettings(), LinkFilterTest::provideGetQueryConditions(), ParserOutputTest::provideGetText(), BaseBlacklistTest::provideGetTypeFromTitle(), WikiMapTest::provideGetWiki(), WikiMapTest::provideGetWikiFromUrl(), MWGrantsTest::provideGrantsAreValid(), DatabaseMysqlBaseTest::provideGtidData(), MediaWiki\Tests\Revision\RevisionSlotsTest::provideHasSameContent(), MediaWiki\Tests\Revision\SlotRecordTest::provideHasSameContent(), MediaWiki\Tests\Storage\RevisionSlotsUpdateTest::provideHasSameUpdates(), TitleMethodsTest::provideHasSubjectNamespace(), MWNamespaceTest::provideHasTalkNamespace(), WikiPageDbTestBase::provideHasViewableContent(), TitleMethodsTest::provideInNamespace(), DatabaseMysqlBaseTest::provideInsertSelectCases(), TitleTest::provideIsAlwaysKnown(), PNGHandlerTest::provideIsAnimated(), GIFHandlerTest::provideIsAnimated(), SpecialBooksourcesTest::provideISBNs(), DatabaseDomainTest::provideIsCompatible(), WikiPageDbTestBase::provideIsCountable(), EasyDeflateTest::provideIsDeflated(), SvgHandlerTest::provideIsEnabled(), ExternalUserNamesTest::provideIsExternal(), StatusTest::provideIsGood(), RecentChangeTest::provideIsInRCLifespan(), StatusTest::provideIsOk(), TitleTest::provideIsRawHtmlMessage(), TitleMethodsTest::provideIsSiteConfigPage(), TitleMethodsTest::provideIsUserConfigPage(), TitleMethodsTest::provideIsUserCssConfigPage(), TitleMethodsTest::provideIsUserJsConfigPage(), TitleTest::provideIsValid(), ApiErrorFormatterTest::provideIsValidApiCode(), TitleMethodsTest::provideIsWikitextPage(), TOTPAuthenticationRequestTest::provideLoadFromSubmission(), TitleBlacklistAuthenticationRequestTest::provideLoadFromSubmission(), ReCaptchaAuthenticationRequestTest::provideLoadFromSubmission(), ReCaptchaNoCaptchaAuthenticationRequestTest::provideLoadFromSubmission(), MediaWiki\Auth\CreationReasonAuthenticationRequestTest::provideLoadFromSubmission(), MediaWiki\Auth\UsernameAuthenticationRequestTest::provideLoadFromSubmission(), MediaWiki\Auth\CreatedAccountAuthenticationRequestTest::provideLoadFromSubmission(), MediaWiki\Auth\ButtonAuthenticationRequestTest::provideLoadFromSubmission(), MediaWiki\Auth\RememberMeAuthenticationRequestTest::provideLoadFromSubmission(), MediaWiki\Auth\UserDataAuthenticationRequestTest::provideLoadFromSubmission(), MediaWiki\Auth\AuthenticationRequestTest::provideLoadFromSubmission(), CentralIdLookupTest::provideLocalUserFromCentralId(), VersionCheckerTest::provideMediaWikiCheck(), ParserOutputTest::provideMergeInternalMetaDataFrom(), MessageCacheTest::provideMessagesForFallback(), MediaWiki\Session\SessionTest::provideMethods(), MediaWiki\Tests\Revision\RevisionStoreTest::provideMigrationConstruction(), CaptchaTest::provideNamespaceOverwrites(), MediaWiki\Session\SessionProviderTest::provideNewSessionInfo(), ApiOptionsTest::provideOptionManupulation(), MediaWiki\Tests\Maintenance\MaintenanceTest::provideOutputChanneledData(), MediaWiki\Tests\Maintenance\MaintenanceTest::provideOutputData(), FormatJsonTest::provideParse(), ExtraParserTest::provideParseLinkParameter(), ChangesListSpecialPageTest::provideParseParameters(), FormatJsonTest::provideParseTryFixing(), MediaWiki\Session\ImmutableSessionProviderWithCookieTest::providePersistSession(), VersionCheckerTest::providePhpValidCheck(), CaptchaPreAuthenticationProviderTest::providePingLimiter(), MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProviderTest::provideProviderChangeAuthenticationData(), MediaWiki\Auth\LocalPasswordPrimaryAuthenticationProviderTest::provideProviderChangeAuthenticationData(), ReadOnlyModeTest::provider(), FileBackendTest::provider_testGetContentType(), FileBackendTest::provider_testGetFileStat(), FileBackendTest::provider_testIsStoragePath(), FileTest::providerCanAnimate(), ContentSecurityPolicyTest::providerCSPIsEnabled(), ContentSecurityPolicyTest::providerFalsePositiveBrowser(), ResourceLoaderFileModuleTest::providerGetScriptPackageFiles(), ContentSecurityPolicyTest::providerMakeCSPDirectives(), ContentSecurityPolicyTest::providerPrepareUrlForCSP(), MediaWiki\Auth\AuthManagerTest::provideSecuritySensitiveOperationStatus(), MediaWiki\Tests\Revision\RevisionStoreTest::provideSetContentHandlerUseDB(), StatusTest::provideSetResult(), CaptchaTest::provideSimpleTriggersCaptcha(), IPTest::provideSplitHostAndPort(), MediaWiki\Auth\CreateFromLoginAuthenticationRequestTest::provideState(), BlockTest::provideT31116Data(), WebPHandlerTest::provideTestExtractMetaData(), MediaWiki\Auth\ThrottlePreAuthenticationProviderTest::provideTestForAccountCreation(), CaptchaPreAuthenticationProviderTest::provideTestForAccountCreation(), CaptchaPreAuthenticationProviderTest::provideTestForAuthentication(), WebPHandlerTest::provideTestGetImageSize(), ApiQueryTest::provideTestTitlePartToKey(), UserArrayFromResultTest::provideTestValid(), TitleArrayFromResultTest::provideTestValid(), LanguageTest::provideTruncateData(), ImportTest::provideUnknownUserHandling(), WfParseUrlTest::provideURLs(), RevisionDbTestBase::provideUserCan(), MediaWiki\Auth\AuthManagerTest::provideUserCanAuthenticate(), MediaWiki\Tests\Revision::provideUserCanBitfield(), RevisionDbTestBase::provideUserCanBitfield(), MediaWiki\Auth\AuthManagerTest::provideUserExists(), RevisionDbTestBase::provideUserWasLastToEdit(), HTMLRestrictionsFieldTest::provideValidate(), LinkFilterTest::provideValidPatterns(), MediaWiki\Tests\Storage\BlobStoreFactoryTest::provideWikiIds(), MediaWiki\Tests\Revision\RevisionStoreFactoryTest::provideWikiIds(), LocalFile::publishTo(), Wikimedia\Rdbms\SavepointPostgres::query(), Wikimedia\Rdbms\LoadBalancer::rollbackMasterChanges(), JobRunner::run(), SamplingStatsdClientTest::samplingDataProvider(), Block::setCookie(), EditPage::setHeaders(), RevDelList::setVisibility(), SpecialLog::show(), SpecialSearch::showResults(), SpecialPageFactoryTest::specialPageProvider(), HTTPFileStreamer::stream(), MediaWiki\Logger\Monolog\KafkaHandlerTest::swallowsExceptionsWhenRequested(), ApiQueryRecentChangesIntegrationTest::testCategorizeTypeParameter(), ApiQueryWatchlistIntegrationTest::testCategorizeTypeParameter(), MediaWiki\Auth\ConfirmLinkSecondaryAuthenticationProviderTest::testContinueLinkAttempt(), WatchActionTest::testDoWatchNoCheckRights(), PoolWorkArticleViewTest::testDoWorkLoadRevision(), DatabaseTest::testFactory(), MediaWiki\Tests\Storage\NameTableStoreFactoryTest::testGet(), ReplicatedBagOStuffTest::testGetAbsent(), FauxRequestTest::testGetSetHeader(), ExternalUserNamesTest::testGetUserLinkTitle(), RecentChangeTest::testHiddenCategoryChange(), LinkFilterTest::testMakeLikeArrayWithValidPatterns(), RevisionDbTestBase::testNewNullRevision(), LogFormatterTest::testNormalLogParams(), SearchEngineTest::testParseNamespacePrefix(), ParserOutputTest::testProperties(), TitlePermissionTest::testQuickPermissions(), MediaWiki\Tests\Permissions\PermissionManagerTest::testQuickPermissions(), ReplicatedBagOStuffTest::testSet(), LoadBalancerTest::testTransactionCallbackChains(), WatchedItemStoreIntegrationTest::testWatchAndUnWatchItem(), GlobalTest::testWfPercentTest(), File::transform(), PageArchive::undeleteRevisions(), CoreParserFunctions::urlFunction(), MultiWriteBagOStuff::usesAsyncWritesGivenFlags(), Wikimedia\Rdbms\DatabaseMysqlBase::wasKnownStatementRollbackError(), Wikimedia\Rdbms\DatabaseMysqlBase::wasReadOnlyError(), wfLogProfilingData(), and wfStreamThumb().

◆ feeds

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

Definition at line 271 of file hooks.txt.

◆ file

to their LocalSettings php file

Definition at line 91 of file hooks.txt.

Referenced by LessFileCompilationTest::__construct(), RevDelFileItem::__construct(), ManageForeignResources::__construct(), ThumbnailImage::__construct(), BackupReader::__construct(), FileDeleteForm::__construct(), CleanupInvalidDbKeys::__construct(), TestFileReader::__construct(), Exif::__construct(), MSCompoundFileReader::__construct(), LocalFileDeleteBatch::__construct(), LocalFileRestoreBatch::__construct(), LocalFileMoveBatch::__construct(), LocalFileDeleteBatch::addCurrent(), LocalFileDeleteBatch::addOld(), LocalFileDeleteBatch::addOlds(), ReleaseNotesTest::assertFileLength(), RevDelFileItem::canView(), RevDelFileItem::canViewContent(), TestFileReader::checkSection(), LocalFileRestoreBatch::cleanup(), LocalFileRestoreBatch::cleanupFailedBatch(), LocalFileMoveBatch::cleanupSource(), LocalFileMoveBatch::cleanupTarget(), LocalFileDeleteBatch::doDBDeletes(), LocalFileDeleteBatch::doDBInserts(), ApiFileRevert::execute(), InvalidateUserSesssions::execute(), FileDeleteForm::execute(), FileDuplicateSearchPage::execute(), MWDocGen::execute(), ZipDirectoryReader::execute(), LocalFileDeleteBatch::execute(), LocalFileRestoreBatch::execute(), LocalFileMoveBatch::execute(), MSCompoundFileReader::fseek(), RevDelFileItem::getBits(), RevDelFileItem::getComment(), MediaTransformOutput::getDescLinkAttribs(), ZipDirectoryReader::getFileLength(), LocalFileDeleteBatch::getHashes(), RevDelFileItem::getHTML(), RevDelArchivedFileItem::getLink(), RevDelFileItem::getLink(), MediaTransformOutput::getLocalCopyPath(), LocalFileMoveBatch::getMoveTriplets(), ZipDirectoryReader::getSegment(), RevDelFileItem::getUserTools(), CheckLanguageCLI::help(), RevDelFileItem::isDeleted(), User::isLocallyBlockedProxy(), RevDelFileItem::lock(), DatabaseInstaller::populateInterwikiTable(), FileDeleteForm::prepareMessage(), DumpBackup::processOptions(), MergeMessageFileList::readFile(), MSCompoundFileReader::readOffset(), LocalFileDeleteBatch::removeNonexistentFiles(), LocalFileRestoreBatch::removeNonexistentFiles(), LocalFileMoveBatch::removeNonexistentFiles(), LocalFileRestoreBatch::removeNonexistentFromCleanup(), RevDelFileItem::setBits(), ReplaceAll::showFileFormat(), MediaTransformOutput::streamFileWithStatus(), TextSuppressor::suppress(), CheckStyleSuppressor::suppress(), LessFileCompilationTest::testLessFileCompilation(), ThumbnailImage::toHtml(), RevDelFileItem::unlock(), ApiFileRevert::validateParameters(), and LocalFileMoveBatch::verifyDBUpdates().

◆ FileDeleteComplete

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

Definition at line 1476 of file hooks.txt.

◆ form

Apache License January AND DISTRIBUTION Definitions License shall mean the terms and conditions for and distribution as defined by Sections through of this document Licensor shall mean the copyright owner or entity authorized by the copyright owner that is granting the License Legal Entity shall mean the union of the acting entity and all other entities that control are controlled by or are under common control with that entity For the purposes of this definition control direct or to cause the direction or management of such whether by contract or including but not limited to software source documentation and configuration files Object form shall mean any form resulting from mechanical transformation or translation of a Source including but not limited to compiled object generated and conversions to other media types Work shall mean the work of whether in Source or Object made available under the as indicated by a copyright notice that is included in or attached to the whether in Source or Object that is based or other modifications as a an original work of authorship For the purposes of this Derivative Works shall not include works that remain separable or merely the Work and Derivative Works thereof Contribution shall mean any work of including the original version of the Work and any modifications or additions to that Work or Derivative Works that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner For the purposes of this submitted means any form of or written communication sent to the Licensor or its including but not limited to communication on electronic mailing source code control and issue tracking systems that are managed or on behalf the Licensor for the purpose of discussing and improving the but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as Not a Contribution Contributor shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work Grant of Copyright License Subject to the terms and conditions of this each Contributor hereby grants to You a non no royalty irrevocable copyright license to prepare Derivative Works publicly publicly and distribute the Work and such Derivative Works in Source or Object form Grant of Patent License Subject to the terms and conditions of this each Contributor hereby grants to You a non no royalty have offer to and otherwise transfer the where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed Redistribution You may reproduce and distribute copies of the Work or Derivative Works thereof in any with or without and in Source or Object form

Definition at line 1993 of file hooks.txt.

Referenced by SkinFallbackTemplate::execute(), and CheckLanguageCLI::help().

◆ format

◆ functions

null for the wiki Added should default to null in handler functions

Definition at line 1588 of file hooks.txt.

◆ GalleryGetModes

null for the wiki Added should default to null in handler for backwards compatibility GalleryGetModes

Definition at line 1588 of file hooks.txt.

◆ Generally

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

Definition at line 979 of file hooks.txt.

◆ GetCanonicalURL

null for the 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

Definition at line 1588 of file hooks.txt.

◆ GetDefaultSortkey

null for the 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

Definition at line 1588 of file hooks.txt.

◆ GetLinkColours

the value of this variable comes from LanguageConverter GetLinkColours

Definition at line 1679 of file hooks.txt.

◆ GetLocalURL

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

Definition at line 1679 of file hooks.txt.

◆ GetRelativeTimestamp

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 GetRelativeTimestamp

Definition at line 1679 of file hooks.txt.

◆ getUserPermissionsErrorsExpensive

presenting them properly to the user as errors is done by the caller return true getUserPermissionsErrorsExpensive

Definition at line 1755 of file hooks.txt.

◆ GitViewers

presenting them properly to the user as errors is done by the caller return true GitViewers

Definition at line 1769 of file hooks.txt.

◆ 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 When $user is not it can be in the form of<username><more info> e g for bot passwords intended to be added to log contexts Fields it might only if the login was with a bot password 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
inline

Definition at line 780 of file hooks.txt.

Referenced by GuzzleHttpRequest::__construct(), UnregisteredLocalFile::cachePageDimensions(), File::canRender(), GuzzleHttpRequest::execute(), ArchivedFile::getHandler(), File::getHandler(), UnregisteredLocalFile::getImageSize(), UnregisteredLocalFile::getMetadata(), File::isMultipage(), File::mustRender(), ArchivedFile::pageCount(), File::pageCount(), JpegTest::setUp(), XCFHandlerTest::setUp(), GIFHandlerTest::setUp(), PNGHandlerTest::setUp(), TiffTest::setUp(), ExifBitmapTest::setUp(), DjVuTest::setUp(), FileContentHandlerTest::setUp(), ExifRotationTest::setUp(), WikitextContentHandlerTest::setUp(), ExifRotationTest::testBitmapExtractPreRotationDimensions(), ExifBitmapTest::testConvertMetadataLatest(), ExifBitmapTest::testConvertMetadataSoftware(), ExifBitmapTest::testConvertMetadataSoftwareNormal(), ExifBitmapTest::testConvertMetadataToOld(), WikitextContentHandlerTest::testGetAutosummary(), WikitextContentHandlerTest::testGetChangeTag(), PNGHandlerTest::testGetImageArea(), GIFHandlerTest::testGetImageArea(), XCFHandlerTest::testGetImageSize(), DjVuTest::testGetImageSize(), JpegTest::testGetIndependentMetaArray(), GIFHandlerTest::testGetIndependentMetaArray(), PNGHandlerTest::testGetIndependentMetaArray(), XCFHandlerTest::testGetMetadata(), GIFHandlerTest::testGetMetadata(), PNGHandlerTest::testGetMetadata(), DjVuTest::testGetPageDimensions(), DjVuTest::testGetPageText(), ExifBitmapTest::testGoodMetadata(), FileContentHandlerTest::testIndexMapping(), JpegTest::testInvalidFile(), PNGHandlerTest::testInvalidFile(), GIFHandlerTest::testInvalidFile(), TiffTest::testInvalidFile(), DjVuTest::testInvalidFile(), PNGHandlerTest::testIsAnimanted(), GIFHandlerTest::testIsAnimanted(), ExifBitmapTest::testIsBrokenFile(), ExifBitmapTest::testIsInvalid(), XCFHandlerTest::testIsMetadataValid(), GIFHandlerTest::testIsMetadataValid(), PNGHandlerTest::testIsMetadataValid(), ExifBitmapTest::testIsOldBroken(), ExifBitmapTest::testIsOldGood(), WikitextContentHandlerTest::testIsSupportedFormat(), JpegTest::testJpegMetadataExtraction(), WikitextContentHandlerTest::testMakeEmptyContent(), WikitextContentHandlerTest::testMakeRedirectContent(), WikitextContentHandlerTest::testMerge3(), ExifRotationTest::testMetadata(), DjVuTest::testPageCount(), ExifBitmapTest::testPagedTiffHandledGracefully(), ExifRotationTest::testRotationRendering(), WikitextContentHandlerTest::testSerializeContent(), JpegTest::testSwappingICCProfile(), TiffTest::testTiffMetadataExtraction(), WikitextContentHandlerTest::testUnserializeContent(), ForeignAPIFile::transform(), and GuzzleHttpRequest::usingCurl().

◆ herself

they could be provided by a third party developer or written by the admin him herself
Initial value:
==Writing hooks==
A hook is a chunk of code run at some particular event. It consists of:
* a function with some optional accompanying data

Definition at line 129 of file hooks.txt.

◆ history

◆ hook

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 hook
Initial value:
==Rationale==
Hooks allow us to decouple optionally-run code from code that is run for
everyone. It allows MediaWiki hackers

Definition at line 23 of file hooks.txt.

Referenced by SpecialStatistics::execute().

◆ hooks

they could be provided by a third party developer or written by the admin him or *an object with a method and some optional accompanying data Hooks are registered by adding them to the global $wgHooks array for a given event All the following are valid ways to define hooks

Definition at line 73 of file hooks.txt.

Referenced by SpecialUpload::processVerificationError().

◆ However

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
static

Definition at line 2228 of file hooks.txt.

◆ imagelinks

either a unescaped string or a HtmlArmor object after in associative array form imagelinks

Definition at line 2072 of file hooks.txt.

◆ in

◆ include

this hook is for auditing only or null if authentication failed before getting that far or null if we can t even determine that When $user is not it can be in the form of<username><more info> e g for bot passwords intended to be added to log contexts Fields it might include

◆ insert

either a unescaped string or a HtmlArmor object after in associative array form externallinks including delete and insert

Definition at line 2072 of file hooks.txt.

Referenced by Wikimedia\Rdbms\DatabaseSqlite::insert().

◆ Instead

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

Definition at line 979 of file hooks.txt.

◆ isolated

you don t have to do a grep find to see where the $wgReverseTitle variable is say If the code is well enough isolated

Definition at line 115 of file hooks.txt.

◆ it

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

Definition at line 1755 of file hooks.txt.

◆ key

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

Definition at line 2162 of file hooks.txt.

Referenced by HTMLReCaptchaField::__construct(), ManageForeignResources::__construct(), OATHUser::__construct(), CleanupInvalidDbKeys::__construct(), Pingback::__construct(), Wikimedia\Rdbms\ChronologyProtector::__construct(), PoolCounterRedis::__construct(), PoolCounter::__construct(), ArchivedFile::__construct(), IndexPager::__construct(), Pingback::checkIfSent(), JobQueueMemory::doPop(), UpdateLogging::execute(), DeferredUpdates::execute(), CacheHelper::getCachedValue(), CommentStore::getComment(), CommentStore::getCommentLegacy(), PoolCounterRedis::getConnection(), HTMLReCaptchaField::getInputHTML(), CommentStore::getKey(), FixT22757::getRevTextMap(), ImportTest::getSiteInfoXML(), SqlBagOStuff::getTableByKey(), UcdXmlReader::handleChar(), PoolCounterRedis::initAndPopPoolSlotList(), Wikimedia\Rdbms\ChronologyProtector::initPositions(), CommentStore::insert(), CommentStore::insertWithTempTable(), MappedIterator::key(), ArchivedFile::load(), ArchivedFile::loadFromRow(), Pingback::markSent(), BatchRowIterator::next(), SquidPurgeClient::nextRequest(), MagicWordArray::parseMatch(), JavaScriptMinifierTest::provideLineBreaker(), FormatMetadata::resolveMultivalueValue(), BatchRowIterator::rewind(), ApiQueryDeletedRevisions::run(), ApiQueryAllDeletedRevisions::run(), ApiQueryBacklinksprop::run(), ApiQueryBacklinks::run(), Wikimedia\Rdbms\DatabasePostgres::selectSQLText(), HashBagOStuff::set(), MapCacheLRU::set(), OATHUser::setKey(), MapCacheLRU::setMaxSize(), ParserOptions::setupFakeRevision(), Wikimedia\Rdbms\ChronologyProtector::shutdown(), Wikimedia\Rdbms\Database::tableNamesWithIndexClauseOrJOIN(), LocalisationCacheBulkLoad::trimCache(), LocalFile::unprefixRow(), and wfArrayDiff2_cmp().

◆ link

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

◆ Live

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

Definition at line 1423 of file hooks.txt.

◆ LogEventsListGetExtraInputs

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

Definition at line 2072 of file hooks.txt.

◆ lt

logged in & lt
Initial value:
{{int:0750ed4b}}
</td></tr><tr><td>
</td><td>

Definition at line 2169 of file hooks.txt.

◆ MaintenanceRefreshLinksInit

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 or false if none Defaults to false if not set multiOccurrence Can this option be passed multiple times Defaults to false if not set MaintenanceRefreshLinksInit

Definition at line 2170 of file hooks.txt.

◆ ManualLogEntryBeforePublish

configuration should be added through ResourceLoaderGetConfigVars instead can be used to get the real title ManualLogEntryBeforePublish
static

Definition at line 2228 of file hooks.txt.

◆ MediaWiki

those of us who don t want or need it can just leave it out The extensions don t even have to be shipped with MediaWiki

Definition at line 3 of file hooks.txt.

◆ MediaWikiPerformAction

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
static

Definition at line 2228 of file hooks.txt.

◆ message

◆ messages

◆ ModifyExportQuery

for adding new MIME types to the list ModifyExportQuery

Definition at line 2340 of file hooks.txt.

◆ name

to move a page</td >< td > &*You are moving the page across *A non empty talk page already exists under the new name

Definition at line 6 of file hooks.txt.

Referenced by ! wikitext, MockApiQueryBase::__construct(), ConstantDependency::__construct(), GlobalDependency::__construct(), MainConfigDependency::__construct(), CleanupEmptyCategories::__construct(), PopulateCategory::__construct(), Cookie::__construct(), MediaWiki\Widget\CheckMatrixWidget::__construct(), MediaWiki\Auth\ButtonAuthenticationRequest::__construct(), SearchIndexFieldDefinition::__construct(), UserRightsProxy::__construct(), LocalRepo::__construct(), ResourceLoaderImage::__construct(), MailAddress::__construct(), MediaWiki\User\UserIdentityValue::__construct(), UnregisteredLocalFile::__construct(), ArchivedFile::__construct(), ChangesListFilter::__construct(), FileRepo::__construct(), ChangesListFilterGroup::__construct(), FileBackend::__construct(), UploadStashFile::__construct(), PPNode_Hash_Tree::__construct(), PPNode_Hash_Attr::__construct(), FileBackend::clean(), SwiftFileBackend::createContainer(), SwiftFileBackend::deleteContainer(), SwiftFileBackend::doCleanInternal(), SwiftFileBackend::doExecuteOpHandlesInternal(), FileBackend::doOperations(), FileBackendStore::doOperationsInternal(), SwiftFileBackend::doPrepareInternal(), SwiftFileBackend::doPublishInternal(), FileBackend::doQuickOperations(), SwiftFileBackend::doSecureInternal(), SkinFallbackTemplate::execute(), FileRepo::getDisplayName(), MediaWiki\Auth\ButtonAuthenticationRequest::getFieldInfo(), UserRightsProxy::getName(), File::getName(), ArchivedFile::getName(), MediaWiki\Widget\CheckMatrixWidget::getTableRow(), UnregisteredLocalFile::getURL(), ConstantDependency::isExpired(), GlobalDependency::isExpired(), MainConfigDependency::isExpired(), ArchivedFile::loadFromRow(), LocalFile::lock(), LocalFile::move(), SwiftFileBackend::objectListing(), SwiftFileBackend::onError(), WebInstallerOutput::outputHeader(), WebInstallerOutput::outputShortHeader(), FileBackend::prepare(), Preprocessor_Hash::preprocessToObj(), JavaScriptMinifierTest::provideLineBreaker(), FileBackend::publish(), FileBackendStore::resolveStoragePath(), FileRepo::resolveVirtualUrl(), FileBackendMultiWrite::resyncFiles(), FileBackend::secure(), Cookie::serializeToHttpRequest(), SwiftFileBackend::setContainerAccess(), ResourceLoaderModule::setName(), PPNode_Hash_Tree::splitHeading(), FileBackendMultiWrite::substPaths(), LicensesTest::testLicenses(), MailAddress::toString(), and wfStreamThumb().

◆ null

this hook is for auditing only or null if authentication failed before getting that far or null if we can t even determine that When $user is not null

Definition at line 780 of file hooks.txt.

Referenced by UsersPager::__construct(), Wikimedia\Rdbms\ChronologyProtector::__construct(), MediaWiki\Session\SessionBackend::__construct(), CaptchaAuthenticationRequest::__set_state(), ActionTest::actionProvider(), ApiModuleManager::addModules(), Title::areCascadeProtectionSourcesLoaded(), TOTPSecondaryAuthenticationProvider::beginSecondaryAuthentication(), SwiftFileBackend::buildFileObjectListing(), ProtectionForm::buildSelector(), Skin::buildSidebar(), MediaWiki\Auth\Throttler::clear(), ResetAuthenticationThrottle::clearLoginThrottle(), Revision\RevisionSlots::computeSha1(), TOTPSecondaryAuthenticationProvider::continueSecondaryAuthentication(), WikitextContentHandlerTest::dataGetChangeTag(), ContentHandlerTest::dataGetLocalizedName(), JavaScriptContentTest::dataGetSection(), JavaScriptContentTest::dataReplaceSection(), ContribsPagerTest::dateFilterOptionProcessingProvider(), FSFileBackend::doDirectoryExists(), WANObjectCache::doGetWithSetCallback(), OracleUpdater::doNamespaceDefaults(), Wikimedia\Rdbms\DatabaseMysqlBase::doSelectDomain(), DatabaseOracle::doSelectDomain(), Wikimedia\Rdbms\DatabaseMssql::doSelectDomain(), MediaWiki\Storage\DerivedPageDataUpdater::doUpdates(), DisableOATHAuthForUser::execute(), WebInstallerLanguage::execute(), ApiExpandTemplates::execute(), VectorTemplate::execute(), ApiSetNotificationTimestamp::execute(), SpecialLog::execute(), ApiQueryDeletedrevs::execute(), AddSite::execute(), ApiQueryFilearchive::execute(), ApiQueryAllUsers::execute(), MwSql::execute(), UserrightsPage::execute(), ApiQueryWatchlist::extractOutputData(), ApiUploadTestCase::fakeUploadChunk(), ApiUploadTestCase::fakeUploadFile(), FormOptions::fetchValuesFromRequest(), DatabaseOracle::fieldBindStatement(), FileBackendStore::fileExists(), MediaWiki\Widget\Search\FullSearchResultWidget::generateFileHtml(), MediaWiki\Storage\NameTableStoreFactory::get(), WANObjectCache::get(), LegacyLogFormatter::getActionMessage(), ApiStashEdit::getAllowedParams(), SwiftFileBackend::getAuthentication(), MediaWiki\Auth\AuthManager::getAuthenticationRequestsInternal(), Revision\RevisionStore::getBaseRevisionRow(), ApiQueryUserInfo::getBlockInfo(), Revision::getComment(), FileBackendStore::getContentType(), Wikimedia\Rdbms\LBFactory::getCPInfoFromCookieValue(), WikiPage::getDerivedDataUpdater(), ApiComparePages::getDiffRevision(), EditPage::getEditToolbar(), AvroValidatorTest::getErrorsProvider(), MediaWikiTestCase::getExistingTestPage(), LocalFile::getHistory(), HttpErrorTest::getHtmlProvider(), ActorMigration::getInsertValues(), ActorMigration::getInsertValuesWithTempTable(), WANObjectCache::getInterimValue(), ApiQueryUserInfo::getLatestContributionTime(), Site::getLinkPath(), Wikimedia\Rdbms\MySQLMasterPos::getLogFile(), Wikimedia\Rdbms\MySQLMasterPos::getLogName(), Wikimedia\Rdbms\MySQLMasterPos::getLogPosition(), MediaWiki\Session\SessionManagerTest::getManager(), ResourceLoaderStartUpModule::getModuleRegistrations(), VirtualRESTServiceClient::getMountAndService(), WANObjectCache::getMulti(), MediaWiki\Session\UserInfo::getName(), MediaWiki\Widget\NamespaceInputWidget::getNamespaceDropdownOptions(), MediaWikiTestCase::getNonexistingTestPage(), IndexPager::getPagingQueries(), ApiBase::getParent(), MediaWiki\Tidy\RemexCompatMunger::getParentForInsert(), Revision\RevisionStore::getPreviousRevisionId(), RedirectSpecialPage::getRedirectQuery(), ImportTest::getRedirectXML(), MediaWiki\Storage\DerivedPageDataUpdater::getRevisionSlotsUpdate(), JobSpecification::getRootJobParams(), Job::getRootJobParams(), MediaWiki\Session\Session::getSecret(), MediaWiki\Session\Session::getSecretKeys(), SpecialBlock::getTargetAndType(), SpecialOATH::getTargetPage(), CheckLanguageCLI::getTotalCount(), ApiQueryInfo::getVisitingWatcherInfo(), FileRepo::getZoneLocation(), ForeignResourceManager::handleTypeTar(), Wikimedia\Rdbms\LoadBalancer::hasOrMadeRecentMasterChanges(), HistoryPager::historyLine(), MediaWiki\Auth\Throttler::increase(), MediaWiki\Shell\Command::input(), UserGroupMembership::insert(), DatabaseOracle::insertId(), Wikimedia\Rdbms\DatabasePostgres::insertId(), Revision::insertOn(), TrackBlobs::interpretPointer(), ApiQuerySiteinfoTest::interwikiMapProvider(), WANObjectCacheReaper::invoke(), ApiQuerySiteinfoTest::languagesProvider(), HTMLFormFieldCloner::loadDataFromRequest(), SpecialUpload::loadRequest(), MediaWiki\Session\SessionManager::loadSessionInfoFromStore(), RightsLogFormatter::makePageLink(), Wikimedia\Rdbms\DatabaseMysqlBase::masterPosWait(), MediaWiki\Auth\AuthenticationRequest::mergeFieldInfo(), Article::newFromID(), User::newFromIdentity(), OldLocalFile::newFromTitle(), MediaWiki\Auth\TemporaryPasswordAuthenticationRequest::newInvalid(), ComposerVersionNormalizerTest::nonStringProvider(), SpecialDisableOATHForUser::onSubmit(), OATHAuthHooks::onTwoFactorIsEnabled(), DatabaseOracle::open(), Wikimedia\Rdbms\LoadBalancer::openForeignConnection(), PurgeChangedPages::pageableSortedRows(), FileBackend::parentStoragePath(), Block::parseTarget(), CaptchaPreAuthenticationProvider::postAuthentication(), MediaWiki\Storage\DerivedPageDataUpdater::prepareContent(), MediaWiki\Auth\AuthManagerTest::provideAccountCreationLogging(), GlobalTest::provideArrayToCGI(), XmlJsTest::provideConstruction(), ResourceLoaderWikiModuleTest::provideConstructor(), ActorMigrationTest::provideConstructor(), MediaWiki\Tests\Revision\MutableRevisionRecordTest::provideConstructorFailure(), MediaWiki\Auth\AuthenticationResponseTest::provideConstructors(), EditPageTest::provideCreatePages(), SearchEngineTest::provideDataForParseNamespacePrefix(), DatabaseMysqlBaseTest::provideDiapers(), ShellTest::provideEscape(), ExtensionRegistryTest::provideExportExtractedDataGlobals(), LanguageMlTest::provideFormatNum(), ApiFormatNoneTest::provideGeneralEncoding(), DeprecationHelperTest::provideGet(), MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProviderTest::provideGetAuthenticationRequests(), WikiReferenceTest::provideGetCanonicalUrl(), MediaWiki\Auth\RememberMeAuthenticationRequestTest::provideGetFieldInfo(), WikiReferenceTest::provideGetFullUrl(), ResourceLoaderWikiModuleTest::provideGetGroup(), RevisionTest::provideGetId(), TitleMethodsTest::provideGetOtherPage(), RevisionTest::provideGetParentId(), WikiPageDbTestBase::provideGetRedirectTarget(), PageArchiveTestBase::provideGetTextFromRowThrowsInvalidArgumentException(), RevisionMcrWriteBothDbTest::provideGetTextId(), RevisionNoContentModelDbTest::provideGetTextId(), RevisionPreMcrDbTest::provideGetTextId(), RevisionMcrReadNewDbTest::provideGetTextId(), RevisionMcrDbTest::provideGetTextId(), RevisionDbTestBase::provideGetTextId(), MediaWiki\Tests\Storage\SqlBlobStoreTest::provideGetTextIdFromAddress(), ExternalUserNamesTest::provideGetUserLinkTitle(), DatabaseMysqlBaseTest::provideGtidData(), VersionCheckerTest::provideInvalidAbilityType(), MediaWiki\Tests\Revision\SlotRecordTest::provideInvalidConstruction(), ProcessCacheLRUTest::provideInvalidConstructorArg(), MWExceptionTest::provideIsCommandLine(), MediaWiki\Auth\RememberMeAuthenticationRequestTest::provideLoadFromSubmission(), DatabaseSQLTest::provideMakeList(), FiltersTest::provideMultiUsernameFilterFrom(), ApiOptionsTest::provideOptionManupulation(), MediaWiki\Tests\Maintenance\MaintenanceTest::provideOutputChanneledData(), MediaWiki\Tests\Maintenance\MaintenanceTest::provideOutputData(), FormatJsonTest::provideParse(), MediaWiki\Auth\AbstractPrimaryAuthenticationProviderTest::provideProviderNormalizeUsername(), FileBackendTest::provider_normalizeStoragePath(), FileBackendTest::provider_testParentStoragePath(), FileBackendTest::provider_testSplitStoragePath(), FileBackendTest::provider_testStreamFile(), RightsLogFormatterTest::provideRightsLogDatabaseRows(), SpecialMIMESearchTest::providerMimeFiltering(), MediaWiki\Auth\AbstractPrimaryAuthenticationProvider::providerNormalizeUsername(), BotPasswordTest::provideSave(), DeprecationHelperTest::provideSet(), MediaWiki\Auth\AuthManagerTest::provideSetDefaultUserOptions(), TitleTest::provideSpecialNamesWithAndWithoutParameter(), SVGMetadataExtractorTest::provideSvgUnits(), BlockTest::provideT31116Data(), MWExceptionTest::provideTextUseOutputPage(), DatabaseSQLTest::provideUnionConditionPermutations(), MWExceptionTest::provideUseMessageCache(), DoubleRedirectsPage::reallyGetQueryInfo(), Wikimedia\Rdbms\LoadBalancer::reallyOpenConnection(), LocalFile::recordUpload2(), LockManagerGroup::register(), FileBackendGroup::register(), SpecialPageTest::requireLoginAnonProvider(), WatchedItemStore::resetNotificationTimestamp(), MediaWiki\Special\SpecialPageFactory::resolveAlias(), FileBackendStore::resolveStoragePath(), FileBackendStore::resolveStoragePathReal(), ApiQueryAllCategories::run(), ApiQueryAllPages::run(), ApiQueryAllImages::run(), ApiQueryRevisions::run(), ApiQueryAllLinks::run(), ApiQueryRandom::runQuery(), MediaWiki\Session\SessionBackend::save(), DBSiteStore::saveSites(), UserNamePrefixSearch::search(), WebResponse::setCookie(), SpecialSearch::showResults(), LoginHelper::showReturnToPage(), ApiQuerySiteinfoTest::skinsProvider(), FileBackend::splitStoragePath(), TextPassDumper::startElement(), JSParser::Statement(), MediaWiki\Session\CookieSessionProvider::suggestLoginUsername(), Scribunto_LuaTitleBlacklistLibrary::test(), MediaWiki\Auth\AuthManagerTest::testAccountCreation(), MediaWiki\Auth\AuthManagerTest::testAccountLink(), MediaWiki\Auth\AuthManagerTest::testBeginAccountCreation(), DerivativeResourceLoaderContextTest::testChangeOnly(), DerivativeResourceLoaderContextTest::testChangeVersion(), MediaWiki\Auth\AuthManagerTest::testContinueAccountCreation(), WatchedItemStoreUnitTest::testCountVisitingWatchersMultiple_withMissingTargets(), MediaWiki\Tests\Storage\DerivedPageDataUpdaterTest::testDoParserCacheUpdate(), XmlSelectTest::testGetAttributes(), WikitextContentHandlerTest::testGetAutosummary(), WikitextContentHandlerTest::testGetChangeTag(), MediaWiki\Session\SessionBackendTest::testGetData(), SiteTest::testGetGlobalId(), SiteTest::testGetLanguageCode(), SiteTest::testGetPath(), CssContentTest::testGetRedirectTarget(), JavaScriptContentTest::testGetRedirectTarget(), WikiPageDbTestBase::testGetRedirectTarget(), CachingSiteStoreTest::testGetSites(), DBSiteStoreTest::testGetSites(), ApiRevisionDeleteTest::testHidingRevisions(), MediaWiki\Session\SessionManagerTest::testLoadSessionInfoFromStore(), ParserOptionsTest::testMatches(), UserTest::testNewFromAnyId(), FormatJsonTest::testParseTryFixing(), MediaWiki\Session\SessionBackendTest::testRenew(), MediaWiki\Session\SessionBackendTest::testSave(), MediaWiki\Session\PHPSessionHandlerTest::testSessionHandling(), WatchedItemStoreIntegrationTest::testUpdateResetAndSetNotificationTimestamp(), WatchedItemStoreIntegrationTest::testWatchAndUnWatchItem(), WANObjectCache::unwrap(), ActivityUpdateJob::updateWatchlistNotification(), SpamBlacklistHooks::userCanSendEmail(), ImagePage::view(), and Wikimedia\Rdbms\LBFactory::waitForReplication().

◆ object

either a unescaped string or a HtmlArmor object

Definition at line 2054 of file hooks.txt.

◆ occur

return true to allow those checks to occur

Definition at line 1476 of file hooks.txt.

Referenced by CleanupInvalidDbKeys::__construct().

◆ occurs

When an event occurs

Definition at line 148 of file hooks.txt.

◆ on

◆ PageContentSave

and how to run hooks for an and one after Each event has a preferably in CamelCase For PageContentSave

Definition at line 6 of file hooks.txt.

◆ PageContentSaveComplete

and how to run hooks for an and one after Each event has a preferably in CamelCase For PageContentSaveComplete

Definition at line 6 of file hooks.txt.

◆ pagelinks

either a unescaped string or a HtmlArmor object after in associative array form pagelinks

Definition at line 2072 of file hooks.txt.

◆ ParserLimitReportPrepare

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

Definition at line 2343 of file hooks.txt.

◆ part

in this case you re responsible for computing and outputting the entire conflict part

Definition at line 1423 of file hooks.txt.

Referenced by Preprocessor_Hash::preprocessToObj().

◆ performed

this hook is for auditing only or null if authentication failed before getting that far or null if we can t even determine that When $user is not it can be in the form of<username><more info> e g for bot passwords intended to be added to log contexts Fields it might only if the login was with a bot password 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
inline

Definition at line 780 of file hooks.txt.

Referenced by UpdateLogging::execute().

◆ plain

◆ Preview

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

Definition at line 1423 of file hooks.txt.

◆ processing

either a unescaped string or a HtmlArmor object after processing

Definition at line 1993 of file hooks.txt.

Referenced by Exif::__construct(), and MediaWikiTitleCodec::splitTitleString().

◆ RecentChangesLinked

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

Definition at line 979 of file hooks.txt.

◆ remoteExtPath

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 remoteExtPath
Initial value:
=> 'Example/tests/qunit',
'script' => [ 'tests/qunit/foo.js' ],
'dependencies' => [ 'ext.Example.foo' ]
]

Definition at line 2860 of file hooks.txt.

◆ replace

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
static

Definition at line 2228 of file hooks.txt.

Referenced by ManageForeignResources::__construct(), and ReplaceAll::showFileFormat().

◆ request

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 or false if none Defaults to false if not set multiOccurrence Can this option be passed multiple times Defaults to false if not set this hook should only be used to add variables that depend on the current page request

Definition at line 2170 of file hooks.txt.

Referenced by WebRequestUpload::__construct(), ResourceLoaderContext::__construct(), WebInstaller::__construct(), MediaWiki\Auth\AuthManager::__construct(), MediaWiki\Auth\AuthManager::autoCreateUser(), MediaWiki\Auth\AuthManager::beginAccountCreation(), MediaWiki\Auth\AuthManager::beginAccountLink(), MediaWiki\Auth\AuthManager::beginAuthentication(), MediaWiki\Auth\AuthManager::canAuthenticateNow(), MediaWiki\Auth\AuthManager::continueAccountCreation(), MediaWiki\Auth\AuthManager::continueAccountLink(), MediaWiki\Auth\AuthManager::continueAuthentication(), WebInstaller::execute(), MediaWiki\Auth\AuthManager::forcePrimaryAuthenticationProviders(), MediaWiki\Auth\AuthManager::getAuthenticationRequests(), MediaWiki\Auth\AuthManager::getAuthenticationSessionData(), WebInstaller::getFingerprint(), RedisLockManager::getLocksOnServer(), MediaWiki\Auth\AuthManagerTest::getMockSessionProvider(), RequestContext::getRequest(), DerivativeContext::getRequest(), WebInstaller::getUrl(), MediaWiki\Auth\AuthManagerTest::initializeManager(), WebRequestUpload::isIniSizeOverflow(), WebInstaller::outputCss(), WebInstaller::outputLS(), MediaWiki\Auth\AuthManager::removeAuthenticationSessionData(), MediaWiki\Auth\AuthManager::securitySensitiveOperationStatus(), MediaWiki\Auth\AuthManager::setAuthenticationSessionData(), RequestContext::setRequest(), DerivativeContext::setRequest(), MediaWiki\Auth\AuthManager::setSessionDataForUser(), WebInstaller::setupLanguage(), WebInstaller::setVarsFromRequest(), MediaWiki\Auth\AuthManagerTest::testAccountCreation(), MediaWiki\Auth\AuthManagerTest::testAccountLink(), MediaWiki\Auth\AuthManagerTest::testAuthentication(), MediaWiki\Auth\AuthManagerTest::testAutoAccountCreation(), MediaWiki\Auth\AuthManagerTest::testAutoCreateFailOnLogin(), MediaWiki\Auth\AuthManagerTest::testAutoCreateOnLogin(), MediaWiki\Auth\AuthManagerTest::testBeginAccountCreation(), MediaWiki\Auth\AuthManagerTest::testBeginAccountLink(), MediaWiki\Auth\AuthManagerTest::testBeginAuthentication(), MediaWiki\Auth\AuthManagerTest::testContinueAccountCreation(), MediaWiki\Auth\AuthManagerTest::testContinueAccountLink(), MediaWiki\Auth\AuthManagerTest::testCreateFromLogin(), MediaWiki\Auth\AuthManagerTest::testForcePrimaryAuthenticationProviders(), MediaWiki\Auth\AuthManagerTest::testGetAuthenticationRequests(), and MediaWiki\Auth\AuthManagerTest::testSecuritySensitiveOperationStatus().

◆ rollback

presenting them properly to the user as errors is done by the caller return true use this to change the list i e rollback

Definition at line 1769 of file hooks.txt.

◆ rss

Allows to change the fields on the form that will be generated rss

Definition at line 271 of file hooks.txt.

◆ saved

This code would result in ircNotify being run twice when an article is saved

Definition at line 175 of file hooks.txt.

◆ SearchGetNearMatch

set to $title object and return false for a match SearchGetNearMatch

Definition at line 2894 of file hooks.txt.

◆ SearchGetNearMatchBefore

set to $title object and return false for a match SearchGetNearMatchBefore

Definition at line 2899 of file hooks.txt.

◆ SearchGetNearMatchComplete

the value to return A Title object or null SearchGetNearMatchComplete

Definition at line 2909 of file hooks.txt.

◆ SearchIndexFields

the value to return A Title object or null for latest SearchIndexFields

Definition at line 2909 of file hooks.txt.

◆ simple

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 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

Definition at line 23 of file hooks.txt.

◆ source

null for the 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

◆ strategy

Using a hook running strategy

Definition at line 73 of file hooks.txt.

◆ string

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

Definition at line 175 of file hooks.txt.

Referenced by HTMLFileCache::__construct(), FileBackend::__construct(), ResourceLoaderFileModule::__construct(), Wikimedia\Rdbms\DatabaseSqlite::__toString(), Wikimedia\Rdbms\DatabaseMysqlBase::addQuotes(), CoreParserFunctions::anchorencode(), MediaWiki\Tests\Revision\McrReadNewRevisionStoreDbTest::assertRevisionExistsInDatabase(), MediaWiki\Tests\Revision\McrRevisionStoreDbTest::assertRevisionExistsInDatabase(), HashRing::buildLocationRing(), MediaWiki\Session\SessionManager::changeBackendId(), Wikimedia\Rdbms\DatabaseDomain::convertToString(), MediaWiki\Session\CookieSessionProvider::cookieDataToExport(), ApiFeedWatchlist::createFeedItem(), Language::dateFormat(), ApiBlockTest::doBlock(), WinCacheBagOStuff::doGet(), ApiImport::execute(), ApiQueryAuthManagerInfo::execute(), SpecialContributions::execute(), MediaWiki\Shell\Command::execute(), ResourceLoaderFileModule::extractBasePaths(), ResourceLoaderImageModule::extractLocalBasePath(), MessageCache::get(), User::getActorId(), MediaWiki\Session\SessionBackendTest::getBackend(), Block::getBlockErrorParams(), WatchedItemStore::getCacheKey(), Block::getDatabaseArray(), PageArchivePreMcrTest::getExpectedArchiveRows(), PageArchiveMcrTest::getExpectedArchiveRows(), SpecialPageLanguage::getFormFields(), ResourceLoaderClientHtml::getHeadHtml(), TimelessTemplate::getMainNavigation(), ApiParamInfo::getModuleInfo(), WANObjectCache::getMultiCheckKeyTime(), MediaWiki\Widget\NamespaceInputWidget::getNamespaceDropdownOptions(), HTMLFormField::getNearestFieldByName(), MediaWiki\Session\SessionManager::getProviders(), MonoBookTemplate::getRenderedSidebar(), LoginSignupSpecialPage::hasSessionCookie(), User::idFromName(), MediaWiki\Shell\Command::input(), Xml::listDropDownOptionsOoui(), ResourceLoaderImageModule::loadFromDefinition(), Title::loadFromRow(), ApiBase::logFeatureUsage(), SpecialBlock::maybeAlterFormDefaults(), Block::newLoad(), OATHAuthHooks::onGetPreferences(), ApiStashEdit::parseAndStash(), MediaWiki\Preferences\DefaultPreferencesFactory::profilePreferences(), JobQueueRedis::pushBlobs(), VectorTemplate::renderPortals(), MediaWiki\Session\SessionBackend::resetId(), Wikimedia\Rdbms\LBFactory::resolveDomainID(), Wikimedia\Rdbms\LoadBalancer::resolveDomainID(), MediaWiki\Tests\Revision\PreMcrRevisionStoreDbTest::revisionToRow(), MediaWiki\Tests\Revision\NoContentModelRevisionStoreDbTest::revisionToRow(), MediaWiki\Tests\Revision\McrWriteBothRevisionStoreDbTest::revisionToRow(), MediaWiki\Tests\Revision\RevisionStoreDbTestBase::revisionToRow(), MediaWiki\Session\SessionBackend::save(), FauxResponse::setCookie(), WebResponse::setCookie(), SpecialChangeCredentials::showSubpageList(), FormatJson::stripComments(), Wikimedia\Rdbms\Database::tableNameWithAlias(), MailAddressTest::test__ToString(), ParserFactoryTest::testAllArgumentsWerePassed(), MediaWiki\Session\SessionManagerTest::testBackendRegistration(), MediaWiki\Session\CookieSessionProviderTest::testCookieData(), EditPageTest::testCreatePageTrx(), WikiPageDbTestBase::testDoDeleteArticleReal_suppress(), WikiPageDbTestBase::testDoDeleteArticleReal_userSysop(), MediaWiki\Session\SessionManagerTest::testLoadSessionInfoFromStore(), SpecialBlockTest::testProcessForm(), SpecialBlockTest::testProcessFormExisting(), SpecialBlockTest::testProcessFormRestrictions(), SpecialBlockTest::testProcessFormRestrictionsChange(), DatabaseSqliteTest::testToString(), Job::toString(), BitmapHandler::transformImageMagick(), BitmapHandler::transformImageMagickExt(), RedisBagOStuff::unserialize(), ApiResult::validateValue(), MediaWiki\Preferences\DefaultPreferencesFactory::watchlistPreferences(), and MediaWiki\Logger\Monolog\LegacyHandler::write().

◆ 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 structure

Definition at line 979 of file hooks.txt.

Referenced by RedisLockManager::freeLocksOnServer().

◆ them

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

◆ true

return true

Definition at line 1993 of file hooks.txt.

Referenced by MediaWiki\Tidy\RemexDriver::__construct(), ApiUserrightsTest::addAndRemoveGroupsProvider(), DatabaseUpdater::addExtensionField(), DatabaseUpdater::addExtensionIndex(), DatabaseUpdater::addExtensionTable(), ApiErrorFormatter::addMessagesFromStatus(), MWHttpRequestTestCase::assertResponseFieldValue(), LoadBalancerTest::assertWriteAllowed(), LoadBalancerTest::assertWriteForbidden(), User::changeAuthenticationData(), Wikimedia\Rdbms\MySQLMasterPos::channelsMatch(), User::checkPasswordValidity(), FileRepo::cleanupBatch(), FileBackendMultiWrite::consistencyCheck(), CopyFileBackend::copyFileBatch(), CommentStore::createComment(), CssContentTest::dataEquals(), JavaScriptContentTest::dataEquals(), TextContentTest::dataEquals(), WikitextContentTest::dataEquals(), ChangeTagsTest::dataGetSoftwareTags(), JavaScriptContentTest::dataIsCountable(), TextContentTest::dataIsCountable(), TextContentTest::dataIsEmpty(), WikitextContentHandlerTest::dataIsSupportedFormat(), ContentHandlerTest::dataMakeContent(), ApiQuerySiteinfoTest::dbReplLagProvider(), SearchEngineConfig::defaultNamespaces(), FileRepo::deleteBatch(), CopyFileBackend::delFileBatch(), CleanupUploadStash::doOperations(), MovePageForm::doSubmit(), FileBackendTest::doTestLockCalls(), DatabaseUpdater::dropExtensionField(), DatabaseUpdater::dropExtensionIndex(), DatabaseUpdater::dropExtensionTable(), MediaWiki\Tests\Block\BlockRestrictionStoreTest::equalsDataProvider(), ApiEditPage::execute(), HHVMMakeRepo::execute(), SpecialRunJobs::execute(), MigrateFileRepoLayout::execute(), FixDoubleRedirects::execute(), SpecialTags::execute(), ApiFormatJson::execute(), ApiQueryUsers::execute(), InputBox::extractOptions(), EtcdConfig::fetchAllFromEtcdServer(), FileOp::fileExists(), CoreParserFunctions::filepath(), FileOp::fileSha1(), ApiValidatePassword::getAllowedParams(), ApiEmailUser::getAllowedParams(), ApiUndelete::getAllowedParams(), ApiRollback::getAllowedParams(), ApiWatch::getAllowedParams(), ApiRevisionDelete::getAllowedParams(), ApiUserrights::getAllowedParams(), ApiImageRotate::getAllowedParams(), ApiQueryQueryPage::getAllowedParams(), ApiQueryRandom::getAllowedParams(), ApiOptions::getAllowedParams(), ApiMove::getAllowedParams(), ApiQueryAllPages::getAllowedParams(), ApiQueryBlocks::getAllowedParams(), ApiQuerySearch::getAllowedParams(), ApiQueryUsers::getAllowedParams(), ApiQueryDeletedrevs::getAllowedParams(), ApiQueryRevisions::getAllowedParams(), ApiStashEdit::getAllowedParams(), ApiQueryUserContribs::getAllowedParams(), ApiQueryRecentChanges::getAllowedParams(), LinksUpdate::getAsJobSpecification(), Wikimedia\Rdbms\DatabaseSqlite::getAttributes(), Wikimedia\Rdbms\DatabaseMssql::getAttributes(), Wikimedia\Rdbms\DatabasePostgres::getAttributes(), CreditsAction::getAuthor(), User::getBlockFromCookieValue(), OOUIHTMLForm::getButtons(), PostgresUpdater::getCoreUpdateList(), ParserCache::getDirty(), MediaWiki\Auth\UserDataAuthenticationRequest::getFieldInfo(), FileRepo::getFileProps(), FormSpecialPage::getForm(), SearchIndexFieldTest::getMergeCases(), WANObjectCacheTest::getMultiWithSetCallback_provider(), WANObjectCacheTest::getMultiWithUnionSetCallback_provider(), DatabaseUpdater::getOldGlobalUpdates(), PostgresUpdater::getOldGlobalUpdates(), User::getOptionKinds(), MWFileProps::getPropsFromPath(), ReplaceAll::getReplacements(), ImagePage404Test::getRepoOptions(), UploadForm::getSourceSection(), WfStringToBoolTest::getTestCases(), WikiMap::getWikiIdFromDbDomain(), WANObjectCacheTest::getWithSetCallback_provider(), WANObjectCacheTest::getWithSetCallback_versions_provider(), TitleValueTest::goodConstructorProvider(), ApiQuerySiteinfoTest::groupsProvider(), AuthManagerSpecialPage::handleReauthBeforeExecute(), RollbackAction::handleRollbackRequest(), EditPage::importFormData(), FileRepo::initDirectory(), Language::internalUserTimeAndDate(), Block::isHardblock(), User::isItemLoaded(), DatabaseTestHelper::isOpen(), LoginSignupSpecialPage::load(), ApiAuthManagerHelper::loadAuthenticationRequests(), Skin::makeKnownUrlDetails(), JavaScriptMinifier::minify(), DatabaseUpdater::modifyExtensionField(), DatabaseUpdater::modifyExtensionTable(), MediaWiki\Session\UserInfo::newAnonymous(), HTMLCacheUpdateJob::newForBacklinks(), XmlTypeCheck::newFromFilename(), DuplicateJob::newFromJob(), ForeignAPIFile::newFromTitle(), ComposerVersionNormalizerTest::nonStringProvider(), ApiQuery::outputGeneralPageInfo(), SpecialReplaceText::pageListForm(), ConverterRule::parse(), ConverterRule::parseFlags(), CategoryTreeHooks::parserFunction(), FileDeleteForm::prepareMessage(), SpecialTags::processTagForm(), SpecialNuke::promptForm(), LogFormatterTest::provideApiParamFormatting(), MWRestrictionsTest::provideArray(), GlobalTest::provideArrayToCGI(), CaptchaTest::provideAttributeOverwritten(), CaptchaTest::provideAttributeSet(), MediaWiki\Tests\Revision::provideAudienceCheckData(), MediaWiki\Auth\AuthManagerTest::provideAuthentication(), TitleTest::provideCanHaveTalkPage(), CaptchaTest::provideCanSkipCaptchaMailconfirmed(), CaptchaTest::provideCanSkipCaptchaUserright(), WikiCategoryPageTest::provideCategoryContent(), RecentChangeTest::provideCategoryContent(), CategoryChangesAsRdfTest::provideCategoryData(), DatabaseMysqlBaseTest::provideChannelPositions(), ApiMainTest::provideCheckConditionalRequestHeaders(), MWRestrictionsTest::provideCheckIP(), DatabaseMysqlBaseTest::provideComparePositions(), DatabaseDomainTest::provideConstruct(), MediaWiki\Session\CookieSessionProviderTest::provideCookieData(), LinkRendererFactoryTest::provideCreateFromLegacyOptions(), EditPageTest::provideCreatePages(), DatabaseMysqlBaseTest::provideDiapers(), ApiComparePagesTest::provideDiff(), ApiLoginTest::provideEnableBotPasswords(), TitleTest::provideEquals(), LanguageTest::provideFormattableTimes(), WebRequestTest::provideFuzzyBool(), ApiFormatNoneTest::provideGeneralEncoding(), CaptchaPreAuthenticationProviderTest::provideGetAuthenticationRequests(), ApiBaseTest::provideGetParameterFromSettings(), LinkFilterTest::provideGetQueryConditions(), MWGrantsTest::provideGrantsAreValid(), MediaWiki\Tests\Revision\RevisionSlotsTest::provideHasSameContent(), MediaWiki\Tests\Revision\SlotRecordTest::provideHasSameContent(), MediaWiki\Tests\Storage\RevisionSlotsUpdateTest::provideHasSameUpdates(), TitleMethodsTest::provideHasSubjectNamespace(), MWNamespaceTest::provideHasTalkNamespace(), WikiPageDbTestBase::provideHasViewableContent(), TitleMethodsTest::provideInNamespace(), DatabaseMysqlBaseTest::provideInsertSelectCases(), PasswordResetTest::provideIsAllowed(), TitleTest::provideIsAlwaysKnown(), PNGHandlerTest::provideIsAnimated(), GIFHandlerTest::provideIsAnimated(), MediaWiki\Tests\Permissions\PermissionManagerTest::provideIsBlockedFrom(), UserTest::provideIsBlockedFrom(), SpecialBooksourcesTest::provideISBNs(), MWExceptionTest::provideIsCommandLine(), DatabaseDomainTest::provideIsCompatible(), WikiPageDbTestBase::provideIsCountable(), EasyDeflateTest::provideIsDeflated(), SvgHandlerTest::provideIsEnabled(), ExternalUserNamesTest::provideIsExternal(), StatusTest::provideIsGood(), RecentChangeTest::provideIsInRCLifespan(), ResourceLoaderWikiModuleTest::provideIsKnownEmpty(), StatusTest::provideIsOk(), TitleTest::provideIsRawHtmlMessage(), TitleMethodsTest::provideIsSiteConfigPage(), TitleMethodsTest::provideIsUserConfigPage(), TitleMethodsTest::provideIsUserCssConfigPage(), TitleMethodsTest::provideIsUserJsConfigPage(), TitleTest::provideIsValid(), ApiErrorFormatterTest::provideIsValidApiCode(), MergeHistoryTest::provideIsValidMerge(), TitleMethodsTest::provideIsWikitextPage(), TitleBlacklistAuthenticationRequestTest::provideLoadFromSubmission(), MediaWiki\Auth\ButtonAuthenticationRequestTest::provideLoadFromSubmission(), MediaWiki\Auth\RememberMeAuthenticationRequestTest::provideLoadFromSubmission(), MediaWiki\Auth\UserDataAuthenticationRequestTest::provideLoadFromSubmission(), MediaWiki\Auth\AuthenticationRequestTest::provideLoadFromSubmission(), CentralIdLookupTest::provideLocalUserFromCentralId(), UserPasswordPolicyTest::provideMaxOfPolicies(), VersionCheckerTest::provideMediaWikiCheck(), ParserOutputTest::provideMergeInternalMetaDataFrom(), MediaWiki\Session\SessionTest::provideMethods(), MediaWiki\Tests\Revision\RevisionStoreTest::provideMigrationConstruction(), CaptchaTest::provideNamespaceOverwrites(), DatabaseDomainTest::provideNewFromId(), MediaWiki\Session\SessionProviderTest::provideNewSessionInfo(), BitmapScalingTest::provideNormaliseParams(), ApiOptionsTest::provideOptionManupulation(), MediaWiki\Tests\Maintenance\MaintenanceTest::provideOutputChanneledData(), MediaWiki\Tests\Maintenance\MaintenanceTest::provideOutputData(), FormatJsonTest::provideParse(), ChangesListSpecialPageTest::provideParseParameters(), FormatJsonTest::provideParseStripComments(), MediaWiki\Session\ImmutableSessionProviderWithCookieTest::providePersistSession(), VersionCheckerTest::providePhpValidCheck(), CaptchaPreAuthenticationProviderTest::providePingLimiter(), MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProviderTest::provideProviderChangeAuthenticationData(), MediaWiki\Auth\LocalPasswordPrimaryAuthenticationProviderTest::provideProviderChangeAuthenticationData(), FileBackendTest::provider_testGetContentType(), FileBackendTest::provider_testGetFileStat(), FileBackendTest::provider_testIsStoragePath(), FileBackendTest::provider_testPrepareAndClean(), FileTest::providerCanAnimate(), ContentSecurityPolicyTest::providerCSPIsEnabled(), ContentSecurityPolicyTest::providerFalsePositiveBrowser(), ResourceLoaderFileModuleTest::providerGetScriptPackageFiles(), ContentSecurityPolicyTest::providerMakeCSPDirectives(), MediaWiki\Auth\AuthManagerTest::provideSecuritySensitiveOperationStatus(), DatabaseSQLTest::provideSelect(), MediaWiki\Tests\Revision\RevisionStoreTest::provideSetContentHandlerUseDB(), StatusTest::provideSetResult(), MediaWiki\Logger\LegacyLoggerTest::provideShouldEmit(), CaptchaTest::provideSimpleTriggersCaptcha(), MediaWiki\Auth\CreateFromLoginAuthenticationRequestTest::provideState(), MediaWiki\Auth\ThrottlePreAuthenticationProviderTest::provideTestForAccountCreation(), CaptchaPreAuthenticationProviderTest::provideTestForAccountCreation(), CaptchaPreAuthenticationProviderTest::provideTestForAuthentication(), ApiQueryTest::provideTestTitlePartToKey(), UserArrayFromResultTest::provideTestValid(), TitleArrayFromResultTest::provideTestValid(), MWExceptionTest::provideTextUseOutputPage(), ApiResultTest::provideTransformations(), ImportTest::provideUnknownUserHandling(), RevisionDbTestBase::provideUserCan(), MediaWiki\Auth\AuthManagerTest::provideUserCanAuthenticate(), MediaWiki\Tests\Revision::provideUserCanBitfield(), RevisionDbTestBase::provideUserCanBitfield(), MediaWiki\Auth\AuthManagerTest::provideUserExists(), RevisionDbTestBase::provideUserWasLastToEdit(), ExtensionJsonValidatorTest::provideValidate(), LinkFilterTest::provideValidPatterns(), MediaWiki\Tests\Revision\RevisionStoreFactoryTest::provideWikiIds(), FileRepo::publishBatch(), FileRepo::quickPurgeBatch(), UploadFromUrl::reallyFetchFile(), DatabaseUpdater::renameExtensionIndex(), ReplaceAll::replaceTitles(), MigrateFileRepoLayout::runBatch(), SamplingStatsdClientTest::samplingDataProvider(), EraseArchivedFile::scrubVersion(), ApiMain::setupModule(), ReplaceAll::shouldContinueByDefault(), EditPage::showHeader(), FileRepo::storeBatch(), ApiStashEdit::storeStashValue(), WebInstallerName::submit(), MediaWiki\Logger\Monolog\KafkaHandlerTest::swallowsExceptionsWhenRequested(), SyncFileBackend::syncBackends(), SkinTemplate::tabAction(), Wikimedia\Rdbms\DatabaseSqlite::tableExists(), ApiQueryContinueTest::test1List(), ApiQueryContinueTest::test2Lists(), ApiQueryContinue2Test::testA(), SiteTest::testAddInterwikiId(), SiteTest::testAddNavigationId(), DerivativeResourceLoaderContextTest::testChangeDebug(), DerivativeResourceLoaderContextTest::testChangeRaw(), MediaWiki\Tests\Storage\DerivedPageDataUpdaterTest::testDoParserCacheUpdate(), WatchActionTest::testDoWatchUserNotPermittedStatusNotGood(), PoolWorkArticleViewTest::testDoWorkParserCache(), ExtensionProcessorTest::testExtractConfig2(), SpecialWatchlistTest::testFetchOptionsFromRequest(), TitleBlacklistPreAuthenticationProvider::testForAccountCreation(), ApiQueryContinueTest::testGen1Prop(), ApiQueryContinueTest::testGen1Prop1List(), ApiQueryContinueTest::testGen2Prop(), ApiQueryContinueTest::testGen2Prop2List1Meta(), ChangesListBooleanFilterGroupTest::testGetJsData(), ChangesListStringOptionsFilterGroupTest::testGetJsData(), ChangesListSpecialPageTest::testGetStructuredFilterJsData(), ExternalUserNamesTest::testGetUserLinkTitle(), HashRingTest::testHashRingEjection(), LogFormatterTest::testIrcMsgForLogTypeBlock(), CommandTest::testLogStderr(), MediaWiki\Session\UserInfoTest::testNewFromId(), MediaWiki\Session\UserInfoTest::testNewFromName(), MediaWiki\Tests\Revision\RevisionStoreDbTestBase::testNewRevisionFromRow_revDelete(), MediaWiki\Tests\Revision\RevisionStoreDbTestBase::testNewRevisionFromRow_userNameChange(), SearchEngineTest::testParseNamespacePrefix(), AbstractChangesListSpecialPageTestCase::testParseParameters(), TitlePermissionTest::testQuickPermissions(), MediaWiki\Tests\Permissions\PermissionManagerTest::testQuickPermissions(), ApiQueryContinueTest::testSameGenAndProp(), ApiQueryContinueTest::testSameGenList(), LinksUpdateTest::testUpdate_page_props(), MediaWiki\Logger\Monolog\LogstashFormatterTest::testV1(), MediaWiki\Logger\Monolog\LogstashFormatterTest::testV1WithPrefix(), WANObjectCacheTest::testWritePending(), SpecialUploadStash::tryClearStashedUploads(), HTMLUserTextField::validate(), and MediaWiki\Session\UserInfo::verified().

◆ understand

Having all this code related to the title reversion option in one place means that it s easier to read and understand

Definition at line 114 of file hooks.txt.

◆ undo

◆ up

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
static

◆ used

you don t have to do a grep find to see where the $wgReverseTitle variable is used

◆ UserLogin

and how to run hooks for an and one after Each event has a preferably in CamelCase For UserLogin

Definition at line 6 of file hooks.txt.

◆ values

◆ weird

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
Initial value:
{
Hooks::run( 'ArticleShowComplete', [ &$article ] )

Definition at line 77 of file hooks.txt.

◆ writer

saved
This code would result in ircNotify being run twice when an article is saved
Definition: hooks.txt:175
$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: hooks.txt:1476
file
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
Definition: hooks.txt:91
$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: hooks.txt:2644
hooks
Using a hook running we can avoid having all this option specific stuff in our mainline code Using hooks
Definition: hooks.txt:73
logs
as see the revision history and logs
Definition: MIT-LICENSE.txt:5
wiki
Prior to maintenance scripts were a hodgepodge of code that had no cohesion or formal method of action Beginning maintenance scripts have been cleaned up to use a unified class Directory structure How to run a script How to write your own DIRECTORY STRUCTURE The maintenance directory of a MediaWiki installation contains several all of which have unique purposes HOW TO RUN A SCRIPT Ridiculously just call php someScript php that s in the top level maintenance directory if not default wiki
Definition: maintenance.txt:1
example
and how to run hooks for an and one after Each event has a preferably in CamelCase For example
Definition: hooks.txt:6
including
within a display generated by the Derivative if and wherever such third party notices normally appear The contents of the NOTICE file are for informational purposes only and do not modify the License You may add Your own attribution notices within Derivative Works that You alongside or as an addendum to the NOTICE text from the provided that such additional attribution notices cannot be construed as modifying the License You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for or distribution of Your or for any such Derivative Works as a provided Your and distribution of the Work otherwise complies with the conditions stated in this License Submission of Contributions Unless You explicitly state any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this without any additional terms or conditions Notwithstanding the nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions Trademarks This License does not grant permission to use the trade service or product names of the except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file Disclaimer of Warranty Unless required by applicable law or agreed to in Licensor provides the WITHOUT WARRANTIES OR CONDITIONS OF ANY either express or including
Definition: APACHE-LICENSE-2.0.txt:147
a
</source > ! result< div class="mw-highlight mw-content-ltr" dir="ltr">< pre >< span ></span >< span class="kd"> var</span >< span class="nx"> a</span >< span class="p"></span ></pre ></div > ! end ! test Multiline< source/> in lists !input *< source > a b</source > *foo< source > a b</source > ! html< ul >< li >< div class="mw-highlight mw-content-ltr" dir="ltr">< pre > a b</pre ></div ></li ></ul >< ul >< li > foo< div class="mw-highlight mw-content-ltr" dir="ltr">< pre > a b</pre ></div ></li ></ul > ! html tidy< ul >< li >< div class="mw-highlight mw-content-ltr" dir="ltr">< pre > a b</pre ></div ></li ></ul >< ul >< li > foo< div class="mw-highlight mw-content-ltr" dir="ltr">< pre > a b</pre ></div ></li ></ul > ! end ! test Custom attributes !input< source lang="javascript" id="foo" class="bar" dir="rtl" style="font-size: larger;"> var a
Definition: parserTests.txt:85
page
target page
Definition: All_system_messages.txt:1267
data
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
Definition: hooks.txt:6
http
Apache License January http
Definition: APACHE-LICENSE-2.0.txt:3
is
This document provides an overview of the usage of PageUpdater and that is
Definition: pageupdater.txt:3
File
Implements some public methods and some protected utility functions which are required by multiple ch...
Definition: File.php:52
user
This document is intended to provide useful advice for parties seeking to redistribute MediaWiki to end users It s targeted particularly at maintainers for Linux since it s been observed that distribution packages of MediaWiki often break We ve consistently had to recommend that users seeking support use official tarballs instead of their distribution s and this often solves whatever problem the user is having It would be nice if this could such and we might be restricted by PHP settings such as safe mode or open_basedir We cannot assume that the software even has read access anywhere useful Many shared hosts run all users web applications under the same user
Definition: distributors.txt:9
there
has been added to your &Future changes to this page and its associated Talk page will be listed there
Definition: All_system_messages.txt:357
in
null for the wiki Added in
Definition: hooks.txt:1588
MediaWiki
A helper class for throttling authentication attempts.
use
as see the revision history and available at free of to any person obtaining a copy of this software and associated documentation to deal in the Software without including without limitation the rights to use
Definition: MIT-LICENSE.txt:10
$parser
see documentation in includes Linker php for Linker::makeImageLink or false for current used if you return false $parser
Definition: hooks.txt:1802
RequestContext
Group all the pieces relevant to the context of a request into one instance.
Definition: RequestContext.php:32
run
and give any other recipients of the Program a copy of this License along with the Program You may charge a fee for the physical act of transferring a and you may at your option offer warranty protection in exchange for a fee You may modify your copy or copies of the Program or any portion of thus forming a work based on the and copy and distribute such modifications or work under the terms of Section provided that you also meet all of these that in whole or in part contains or is derived from the Program or any part to be licensed as a whole at no charge to all third parties under the terms of this License c If the modified program normally reads commands interactively when run
Definition: COPYING.txt:87
hook
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 hook
Definition: hooks.txt:23
captcha-old.action
action
Definition: captcha-old.py:212
code
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 administrators to define code that will be run at certain points in the mainline code
Definition: hooks.txt:23
language
and that you know you can do these things To protect your we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights These restrictions translate to certain responsibilities for you if you distribute copies of the or if you modify it For if you distribute copies of such a whether gratis or for a you must give the recipients all the rights that you have You must make sure that receive or can get the source code And you must show them these terms so they know their rights We protect your rights with two distribute and or modify the software for each author s protection and we want to make certain that everyone understands that there is no warranty for this free software If the software is modified by someone else and passed we want its recipients to know that what they have is not the so that any problems introduced by others will not reflect on the original authors reputations any free program is threatened constantly by software patents We wish to avoid the danger that redistributors of a free program will individually obtain patent in effect making the program proprietary To prevent we have made it clear that any patent must be licensed for everyone s free use or not licensed at all The precise terms and conditions for distribution and modification follow GNU GENERAL PUBLIC LICENSE TERMS AND CONDITIONS FOR DISTRIBUTION AND MODIFICATION This License applies to any program or other work which contains a notice placed by the copyright holder saying it may be distributed under the terms of this General Public License The refers to any such program or and a work based on the Program means either the Program or any derivative work under copyright a work containing the Program or a portion of either verbatim or with modifications and or translated into another language(Hereinafter, translation is included without limitation in the term "modification".) Each licensee is addressed as "you". Activities other than copying
are
The ContentHandler facility adds support for arbitrary content types on wiki instead of relying on wikitext for everything It was introduced in MediaWiki Each kind of and so on Built in content types are
Definition: contenthandler.txt:5
from
Apache License January AND DISTRIBUTION Definitions License shall mean the terms and conditions for and distribution as defined by Sections through of this document Licensor shall mean the copyright owner or entity authorized by the copyright owner that is granting the License Legal Entity shall mean the union of the acting entity and all other entities that control are controlled by or are under common control with that entity For the purposes of this definition control direct or to cause the direction or management of such whether by contract or including but not limited to software source documentation and configuration files Object form shall mean any form resulting from mechanical transformation or translation of a Source including but not limited to compiled object generated and conversions to other media types Work shall mean the work of whether in Source or Object made available under the as indicated by a copyright notice that is included in or attached to the whether in Source or Object that is based or other modifications as a an original work of authorship For the purposes of this Derivative Works shall not include works that remain separable from
Definition: APACHE-LICENSE-2.0.txt:43
of
globals txt Globals are evil The original MediaWiki code relied on globals for processing context far too often MediaWiki development since then has been a story of slowly moving context out of global variables and into objects Storing processing context in object member variables allows those objects to be reused in a much more flexible way Consider the elegance of
Definition: globals.txt:10
that
deferred txt A few of the database updates required by various functions here can be deferred until after the result page is displayed to the user For updating the view updating the linked to tables after a etc PHP does not yet have any way to tell the server to actually return and disconnect while still running these but it might have such a feature in the future We handle these by creating a deferred update object and putting those objects on a global then executing the whole list after the page is displayed We don t do anything smart like collating updates to the same table or such because the list is almost always going to have just one item on if that
Definition: deferred.txt:11
Hooks\run
static run( $event, array $args=[], $deprecatedVersion=null)
Call hook functions defined in Hooks::register and $wgHooks.
Definition: Hooks.php:200
Hooks
Hooks class.
Definition: Hooks.php:34
amp
& amp
Definition: parserTests.txt:54