7 parent::__construct( $params );
9 if ( isset( $this->mParams[
'output-as-default'] ) ) {
10 $this->outputAsDefault = (bool)$this->mParams[
'output-as-default'];
13 # Per HTML5 spec, hidden fields cannot be 'required'
14 # https://www.w3.org/TR/html5/forms.html#hidden-state-%28type=hidden%29
15 unset( $this->mParams[
'required'] );
24 if ( $this->outputAsDefault ) {
33 $this->mParent->addHiddenField( $name, $value, $params );