MediaWiki master
BinaryBooleanDef.php
Go to the documentation of this file.
1<?php
2
4
6
20
22 public function normalizeSettings( array $settings ) {
23 $settings += [ ParamValidator::PARAM_DEFAULT => false ];
24
25 return parent::normalizeSettings(
26 $settings
27 );
28 }
29}
Service for formatting and validating API parameters.
const PARAM_DEFAULT
(mixed) Default value of the parameter.
normalizeSettings(array $settings)
Normalize a settings array.to override array
Type definition for optional boolean values.