MediaWiki
1.34.0
|
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. More... | |
isAllowedModel ( $model, LinkTarget $page) | |
isAllowedOn (LinkTarget $page) | |
Public Member Functions inherited from Revision\SlotRoleHandler | |
__construct ( $role, $contentModel, $layout=[]) | |
getDefaultModel (LinkTarget $page) | |
Determines the content model to use per default for this slot on the given page. More... | |
getNameMessageKey () | |
The message key for the translation of the slot name. More... | |
getRole () | |
supportsArticleCount () | |
Whether this slot should be considered when determining whether a page should be counted as an "article" in the site statistics. More... | |
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.
Revision\FallbackSlotRoleHandler::__construct | ( | $role | ) |
Definition at line 38 of file FallbackSlotRoleHandler.php.
References Revision\SlotRoleHandler\$role, and CONTENT_MODEL_TEXT.
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:
Reimplemented from Revision\SlotRoleHandler.
Definition at line 63 of file FallbackSlotRoleHandler.php.
Revision\FallbackSlotRoleHandler::isAllowedModel | ( | $model, | |
LinkTarget | $page | ||
) |
string | $model | |
LinkTarget | $page |
Reimplemented from Revision\SlotRoleHandler.
Definition at line 59 of file FallbackSlotRoleHandler.php.
Revision\FallbackSlotRoleHandler::isAllowedOn | ( | LinkTarget | $page | ) |
LinkTarget | $page |
Definition at line 48 of file FallbackSlotRoleHandler.php.