MediaWiki REL1_34
PasswordDef.php
Go to the documentation of this file.
1<?php
2
4
6
16class PasswordDef extends StringDef {
17
18 public function normalizeSettings( array $settings ) {
19 $settings[ParamValidator::PARAM_SENSITIVE] = true;
20 return parent::normalizeSettings( $settings );
21 }
22
23}
Service for formatting and validating API parameters.
const PARAM_SENSITIVE
(bool) Indicate that the parameter's value should not be logged.
Type definition for "password" types.
normalizeSettings(array $settings)
Normalize a settings array.
Type definition for string types.
Definition StringDef.php:24