< Manual:Hooks 
 
      | PerformRetroactiveAutoblock | |
|---|---|
| Available from version 1.18.0 (r92223, codereview) Called before a retroactive autoblock is applied to a user. | |
| Define function: | public static function onPerformRetroactiveAutoblock( DatabaseBlock $block, array &$blockIds ) { ... }
 | 
| Attach hook: | In extension.json: {
	"Hooks": {
		"PerformRetroactiveAutoblock": "MyExtensionHooks::onPerformRetroactiveAutoblock"
	}
}
 | 
| Called from: | File(s): block/DatabaseBlockStore.php | 
| Interface: | PerformRetroactiveAutoblockHook.php | 
For more information about attaching hooks, see Manual:Hooks.
For examples of extensions using this hook, see Category:PerformRetroactiveAutoblock extensions.
Details
- $block: MediaWiki\Block\DatabaseBlock object (which is set to be autoblocking)
- &$blockIds: Array of block IDs of the autoblock
    This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.