MediaWiki fundraising/REL1_35
|
A SlotRoleHandler for providing basic functionality for undefined slot roles. More...
Public Member Functions | |
__construct ( $role) | |
getOutputLayoutHints () | |
Layout hints for use while laying out the combined output of all slots, typically by RevisionRenderer. | |
isAllowedModel ( $model, LinkTarget $page) | |
isAllowedOn (LinkTarget $page) | |
Public Member Functions inherited from MediaWiki\Revision\SlotRoleHandler | |
__construct ( $role, $contentModel, $layout=[]) | |
Stable to call. | |
getDefaultModel (LinkTarget $page) | |
Determines the content model to use per default for this slot on the given page. | |
getNameMessageKey () | |
The message key for the translation of the slot name. | |
getRole () | |
supportsArticleCount () | |
Whether this slot should be considered when determining whether a page should be counted as an "article" in the site statistics. | |
A SlotRoleHandler for providing basic functionality for undefined slot roles.
This class is intended to be used when encountering slots with a role that used to be defined by an extension, but no longer is backed by hany specific handler, since the extension in question has been uninstalled. It may also be used for pages imported from another wiki.
Definition at line 36 of file FallbackSlotRoleHandler.php.
MediaWiki\Revision\FallbackSlotRoleHandler::__construct | ( | $role | ) |
Definition at line 38 of file FallbackSlotRoleHandler.php.
References MediaWiki\Revision\SlotRoleHandler\$role, and CONTENT_MODEL_TEXT.
MediaWiki\Revision\FallbackSlotRoleHandler::getOutputLayoutHints | ( | ) |
Layout hints for use while laying out the combined output of all slots, typically by RevisionRenderer.
The layout hints are given as an associative array. Well-known keys to use:
Stable to override
Reimplemented from MediaWiki\Revision\SlotRoleHandler.
Definition at line 63 of file FallbackSlotRoleHandler.php.
MediaWiki\Revision\FallbackSlotRoleHandler::isAllowedModel | ( | $model, | |
LinkTarget | $page ) |
string | $model | |
LinkTarget | $page |
Reimplemented from MediaWiki\Revision\SlotRoleHandler.
Definition at line 59 of file FallbackSlotRoleHandler.php.
MediaWiki\Revision\FallbackSlotRoleHandler::isAllowedOn | ( | LinkTarget | $page | ) |
LinkTarget | $page |
Definition at line 48 of file FallbackSlotRoleHandler.php.