php/layouts/FieldLayout.php
private function createHelpElement() {
		if ( $this->helpInline ) {
			return new LabelWidget( [
				'classes' => [ 'oo-ui-inline-help' ],
				'label' => $this->helpText,
			] );
		} else {
			return new ButtonWidget( [
				'classes' => [ 'oo-ui-fieldLayout-help' ],
				'framed' => false,
				'icon' => 'info',
				'title' => $this->helpText,
				// TODO We have no way to use localisation messages in PHP
				// (and to use different languages when used from MediaWiki)
				// 'label' => msg( 'ooui-field-help' ),
				// 'invisibleLabel' => true,
			] );
		}
	}
private function createHelpElement() {
		if ( $this->helpInline ) {
			return new LabelWidget( [
				'classes' => [ 'oo-ui-inline-help' ],
				'label' => $this->helpText,
			] );
		} else {
			return new ButtonWidget( [
				'classes' => [ 'oo-ui-fieldLayout-help' ],
				'framed' => false,
				'icon' => 'info',
				'title' => $this->helpText,
				// TODO We have no way to use localisation messages in PHP
				// (and to use different languages when used from MediaWiki)
				// 'label' => msg( 'ooui-field-help' ),
				// 'invisibleLabel' => true,
			] );
		}
	}
private function createHelpElement ( ) { if ( $ this -> helpInline ) { return new LabelWidget ( [ 'classes' => [ 'oo-ui-inline-help' ] , 'label' => $ this -> helpText , ] ) ; } else { return new ButtonWidget ( [ 'classes' => [ 'oo-ui-fieldLayout-help' ] , 'framed' => false , 'icon' => 'info' , 'title' => $ this -> helpText , // TODO We have no way to use localisation messages in PHP // (and to use different languages when used from MediaWiki) // 'label' => msg( 'ooui-field-help' ), // 'invisibleLabel' => true, ] ) ; } }
Creates and returns the help element.

@return Widget The element that should become `$this->help`.
Creates and returns the help element .