MediaWiki master
|
This is a hook handler interface, see docs/Hooks.md. More...
Inherited by MediaWiki\HookContainer\HookRunner.
Public Member Functions | |
onAuthPreserveQueryParams (array &$params, array $options) | |
This hook gets called any time an authentication page generates an URL which is in some sense part of the authentication process (e.g. | |
This is a hook handler interface, see docs/Hooks.md.
Use the hook name "AuthPreserveQueryParams" to register handlers implementing this interface.
Definition at line 12 of file AuthPreserveQueryParamsHook.php.
MediaWiki\Auth\Hook\AuthPreserveQueryParamsHook::onAuthPreserveQueryParams | ( | array & | $params, |
array | $options ) |
This hook gets called any time an authentication page generates an URL which is in some sense part of the authentication process (e.g.
a language switcher link, the login form's action URL, or the return URL for a remote identity provider) and needs to determine which of the current query parameters to preserve in that URL.
array | &$params | Query parameters to preserve, name => value Typically, the hook would do something like $params['foo'] = $options['request']->getRawVal( 'foo' ); |
array | $options | Information about the purpose of the URL that's being generated
|