17 $info[
'nodata'] =
true;
19 parent::__construct( $info );
23 $default = parent::getDefault();
24 if ( $default instanceof Closure ) {
25 $default = $default( $this->mParams );
31 return !empty( $this->mParams[
'raw'] ) ? $value : htmlspecialchars( $value );
35 if ( !empty( $this->mParams[
'raw'] ) ) {
36 $value =
new OOUI\HtmlSnippet( $value );
39 return new OOUI\LabelWidget( [
45 if ( !empty( $this->mParams[
'rawrow'] ) ) {
49 return parent::getTableRow( $value );
58 if ( !empty( $this->mParams[
'rawrow'] ) ) {
62 return parent::getDiv( $value );
71 if ( !empty( $this->mParams[
'rawrow'] ) ) {
75 return parent::getRaw( $value );
84 if ( !empty( $this->mParams[
'rawrow'] ) ) {
85 if ( !( $value instanceof OOUI\FieldLayout ) ) {
86 wfDeprecated( __METHOD__ .
": 'default' parameter as a string when using" .
87 "'rawrow' (must be a FieldLayout or subclass)",
'1.32' );
92 return parent::getOOUI( $value );