MediaWiki REL1_37
|
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, PageIdentity $page) | |
isAllowedOn (LinkTarget $page) | |
Public Member Functions inherited from MediaWiki\Revision\SlotRoleHandler | |
__construct ( $role, $contentModel, $layout=[], bool $derived=false) | |
getDefaultModel ( $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 () | |
isDerived () | |
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 37 of file FallbackSlotRoleHandler.php.
MediaWiki\Revision\FallbackSlotRoleHandler::__construct | ( | $role | ) |
Definition at line 39 of file FallbackSlotRoleHandler.php.
References MediaWiki\Revision\SlotRoleHandler\$role, and CONTENT_MODEL_UNKNOWN.
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:
Reimplemented from MediaWiki\Revision\SlotRoleHandler.
Definition at line 63 of file FallbackSlotRoleHandler.php.
MediaWiki\Revision\FallbackSlotRoleHandler::isAllowedModel | ( | $model, | |
PageIdentity | $page | ||
) |
string | $model | |
PageIdentity | $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.