Translate extension for MediaWiki
 
Loading...
Searching...
No Matches
MediaWiki\Extension\Translate\TranslatorInterface\GetSpecialTranslateOptionsHook Interface Reference

This is a hook handler interface, see docs/Hooks.md in core. More...

Inheritance diagram for MediaWiki\Extension\Translate\TranslatorInterface\GetSpecialTranslateOptionsHook:
MediaWiki\Extension\Translate\HookRunner

Public Member Functions

 onTranslateGetSpecialTranslateOptions (array &$defaults, array &$nonDefaults)
 Provides an opportunity for overriding task values.
 

Detailed Description

This is a hook handler interface, see docs/Hooks.md in core.

Use the hook name "TranslateGetSpecialTranslateOptions" to register handlers implementing this interface.

@stable to implement

Definition at line 13 of file GetSpecialTranslateOptionsHook.php.

Member Function Documentation

◆ onTranslateGetSpecialTranslateOptions()

MediaWiki\Extension\Translate\TranslatorInterface\GetSpecialTranslateOptionsHook::onTranslateGetSpecialTranslateOptions ( array & $defaults,
array & $nonDefaults )

Provides an opportunity for overriding task values.

Parameters
array&$defaultsAssociative array of default values
array&$nonDefaultsAssociative array of nondefault (override) values
Returns
bool|void True or no return value to continue or false to abort

Implemented in MediaWiki\Extension\Translate\HookRunner.


The documentation for this interface was generated from the following file: