|
MediaWiki master
|
This is a hook handler interface, see docs/Hooks.md. More...
Inherited by MediaWiki\HookContainer\HookRunner.
Public Member Functions | |
| onListRestrictedTags (array &$restrictedTags) | |
| This hook is called when building the map of rights-restricted change tags to the rights that can view them. | |
This is a hook handler interface, see docs/Hooks.md.
Use the hook name "ListRestrictedTags" to register handlers implementing this interface.
Definition at line 12 of file ListRestrictedTagsHook.php.
| MediaWiki\ChangeTags\Hook\ListRestrictedTagsHook::onListRestrictedTags | ( | array & | $restrictedTags | ) |
This hook is called when building the map of rights-restricted change tags to the rights that can view them.
A restricted tag is one whose name starts with ChangeTagsStore::PRIVATE_TAG_PREFIX. A rights-restricted tag that is not present in the map is visible to no-one.
| array<string,string|string[]> | &$restrictedTags Map of tag name to the right(s) required to view the tag. A viewer may see the tag if they have any of the listed rights. All keys MUST use the ChangeTagsStore::PRIVATE_TAG_PREFIX prefix. |
Implemented in MediaWiki\HookContainer\HookRunner.