MediaWiki  master
InitializeArticleMaybeRedirectHook.php
Go to the documentation of this file.
1 <?php
2 
3 namespace MediaWiki\Hook;
4 
5 use Article;
6 use Title;
7 use WebRequest;
8 
26  public function onInitializeArticleMaybeRedirect( $title, $request,
27  &$ignoreRedirect, &$target, &$article
28  );
29 }
MediaWiki\Hook
Definition: ActionBeforeFormDisplayHook.php:3
MediaWiki\Hook\InitializeArticleMaybeRedirectHook
Stable to implement.
Definition: InitializeArticleMaybeRedirectHook.php:13
MediaWiki\Hook\InitializeArticleMaybeRedirectHook\onInitializeArticleMaybeRedirect
onInitializeArticleMaybeRedirect( $title, $request, &$ignoreRedirect, &$target, &$article)
Use this hook to check whether a title is a redirect.
$title
$title
Definition: testCompression.php:38
WebRequest
The WebRequest class encapsulates getting at data passed in the URL or via a POSTed form stripping il...
Definition: WebRequest.php:42
Title
Represents a title within MediaWiki.
Definition: Title.php:41
Article
Class for viewing MediaWiki article and history.
Definition: Article.php:46