MediaWiki master
MediaWiki\ShadowPage\ShadowPage Interface Reference

The interface for shadow pages. More...

Inherited by MediaWiki\ShadowPage\BaseShadowPage.

Public Member Functions

 existsForEdit ()
 If this returns true, force the edit action to be labelled "edit", not "create", even though the page technically doesn't exist.
 
 getContentForTransclusion ()
 Get the content to be shown if this page is transcluded.
 
 getDiffTitleMessage ()
 The label for base content when diffing against preloaded content.
 
 getPreloadContent ()
 Get content to be shown in the edit box when editing a non-existent page.
 
 getView (ParserOptions $parserOptions)
 Get page view content, or null to decline to provide such content.
 
 hasPreloadContent ()
 Whether preload content is available.
 

Detailed Description

The interface for shadow pages.

Note that extensions should generally extend BaseShadowPage, to avoid a b/c break if we decide to add more methods here.

Since
1.47

Definition at line 17 of file ShadowPage.php.

Member Function Documentation

◆ existsForEdit()

MediaWiki\ShadowPage\ShadowPage::existsForEdit ( )

If this returns true, force the edit action to be labelled "edit", not "create", even though the page technically doesn't exist.

Implemented in MediaWiki\ShadowPage\BaseShadowPage, and MediaWiki\ShadowPage\MessagePage.

◆ getContentForTransclusion()

MediaWiki\ShadowPage\ShadowPage::getContentForTransclusion ( )

Get the content to be shown if this page is transcluded.

Implemented in MediaWiki\ShadowPage\BaseShadowPage, and MediaWiki\ShadowPage\MessagePage.

◆ getDiffTitleMessage()

MediaWiki\ShadowPage\ShadowPage::getDiffTitleMessage ( )

The label for base content when diffing against preloaded content.

Implemented in MediaWiki\ShadowPage\BaseShadowPage, and MediaWiki\ShadowPage\MessagePage.

◆ getPreloadContent()

MediaWiki\ShadowPage\ShadowPage::getPreloadContent ( )

Get content to be shown in the edit box when editing a non-existent page.

Implemented in MediaWiki\ShadowPage\BaseShadowPage, and MediaWiki\ShadowPage\MessagePage.

◆ getView()

MediaWiki\ShadowPage\ShadowPage::getView ( ParserOptions $parserOptions)

Get page view content, or null to decline to provide such content.

Implemented in MediaWiki\ShadowPage\BaseShadowPage, and MediaWiki\ShadowPage\MessagePage.

◆ hasPreloadContent()

MediaWiki\ShadowPage\ShadowPage::hasPreloadContent ( )

Whether preload content is available.

Implemented in MediaWiki\ShadowPage\BaseShadowPage.


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