MediaWiki  master
MediaWiki\Hook\InitializeArticleMaybeRedirectHook Interface Reference

Stable to implement. 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

Stable to implement.

Definition at line 13 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: