MediaWiki  master
MediaWiki\Hook\InitializeArticleMaybeRedirectHook Interface Reference

This is a hook handler interface, see docs/Hooks.md. More...

Inheritance diagram for MediaWiki\Hook\InitializeArticleMaybeRedirectHook:

Public Member Functions

 onInitializeArticleMaybeRedirect ( $title, $request, &$ignoreRedirect, &$target, &$article)
 Use this hook to check whether a title is a redirect. More...
 

Detailed Description

This is a hook handler interface, see docs/Hooks.md.

Use the hook name "InitializeArticleMaybeRedirect" to register handlers implementing this interface.

Stable to implement

Definition at line 16 of file InitializeArticleMaybeRedirectHook.php.

Member Function Documentation

◆ onInitializeArticleMaybeRedirect()

MediaWiki\Hook\InitializeArticleMaybeRedirectHook::onInitializeArticleMaybeRedirect (   $title,
  $request,
$ignoreRedirect,
$target,
$article 
)

Use this hook to check whether a title is a redirect.

Since
1.35
Parameters
Title$titleTitle object for the current page
WebRequest$request
bool&$ignoreRedirectBoolean to skip redirect check
Title | string&$targetTitle/string of redirect target
Article&$article
Returns
bool|void True or no return value to continue or false to abort

Implemented in MediaWiki\HookContainer\HookRunner.


The documentation for this interface was generated from the following file: