|
MediaWiki master
|
The interface for providers of ShadowPage instances. More...
Inherited by MediaWiki\ShadowPage\BaseShadowPageProvider.
Public Member Functions | |
| existsForLink (LinkTarget $link) | |
| Determine whether a link should be coloured as if it refers to an existing page. | |
| get (PageReference $title) | |
| If the implementation wishes to handle this title, return a ShadowPage. | |
The interface for providers of ShadowPage instances.
Extensions should extend BaseShadowPageProvider, to avoid a b/c break if we decide to add more methods here.
Definition at line 16 of file ShadowPageProvider.php.
| MediaWiki\ShadowPage\ShadowPageProvider::existsForLink | ( | LinkTarget | $link | ) |
Determine whether a link should be coloured as if it refers to an existing page.
| LinkTarget | $link |
| MediaWiki\ShadowPage\ShadowPageProvider::get | ( | PageReference | $title | ) |
If the implementation wishes to handle this title, return a ShadowPage.
Return null to allow the loader to try the next provider.
| PageReference | $title |
Implemented in MediaWiki\ShadowPage\MessageProvider.