25 $info[
'nodata'] =
true;
27 parent::__construct( $info );
35 $default = parent::getDefault();
36 if ( $default instanceof Closure ) {
37 $default = $default( $this->mParams );
47 return !empty( $this->mParams[
'raw'] ) ? $value : htmlspecialchars( $value );
55 if ( !empty( $this->mParams[
'raw'] ) ) {
56 $value = new \OOUI\HtmlSnippet( $value );
59 return new \OOUI\LabelWidget( [
70 if ( !empty( $this->mParams[
'rawrow'] ) ) {
74 return parent::getTableRow( $value );
84 if ( !empty( $this->mParams[
'rawrow'] ) ) {
88 return parent::getDiv( $value );
98 if ( !empty( $this->mParams[
'rawrow'] ) ) {
102 return parent::getRaw( $value );
112 if ( !empty( $this->mParams[
'rawrow'] ) ) {
113 if ( !( $value instanceof \OOUI\FieldLayout ) ) {
114 wfDeprecatedMsg( __METHOD__ .
": 'default' parameter as a string when using " .
115 "'rawrow' was deprecated in MediaWiki 1.32 (must be a FieldLayout or subclass)",
121 return parent::getOOUI( $value );
125 if ( !empty( $this->mParams[
'rawrow'] ) ) {
129 return parent::getCodex( $value );
142class_alias( HTMLInfoField::class,
'HTMLInfoField' );
wfDeprecatedMsg( $msg, $version=false, $component=false, $callerOffset=2)
Log a deprecation warning with arbitrary message text.