MediaWiki master
ShadowPage.php
Go to the documentation of this file.
1<?php
2
4
8
17interface ShadowPage {
21 public function getPreloadContent(): ?Content;
22
26 public function hasPreloadContent(): bool;
27
32
37 public function existsForEdit(): bool;
38
43
47 public function getView( ParserOptions $parserOptions ): ?ShadowPageView;
48}
Set options of the Parser.
Content objects represent page content, e.g.
Definition Content.php:28
A bundle for page view data.
The interface for shadow pages.
getContentForTransclusion()
Get the content to be shown if this page is transcluded.
existsForEdit()
If this returns true, force the edit action to be labelled "edit", not "create", even though the page...
getDiffTitleMessage()
The label for base content when diffing against preloaded content.
hasPreloadContent()
Whether preload content is available.
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.