31 $id = $this->mParams[
'id'];
32 $label = Html::rawElement(
'label', [
'for' => $id ], $this->mLabel );
34 if ( !empty( $this->mParams[
'radio'] ) ) {
35 if ( isset( $this->mParams[
'radio-id'] ) ) {
36 $radioId = $this->mParams[
'radio-id'];
40 $radioId =
'wpSourceType' . $this->mParams[
'upload-type'];
44 'name' =>
'wpSourceType',
47 'value' => $this->mParams[
'upload-type'],
50 if ( !empty( $this->mParams[
'checked'] ) ) {
54 $label .= Html::element(
'input',
$attribs );
57 return Html::rawElement(
'td', [
'class' =>
'mw-label' ] + $cellAttributes, $label );