33 $id = $this->mParams[
'id'];
34 $label = Html::rawElement(
'label', [
'for' => $id ], $this->mLabel );
36 if ( !empty( $this->mParams[
'radio'] ) ) {
37 $radioId = $this->mParams[
'radio-id'] ??
40 'wpSourceType' . $this->mParams[
'upload-type'];
43 'name' =>
'wpSourceType',
46 'value' => $this->mParams[
'upload-type'],
49 if ( !empty( $this->mParams[
'checked'] ) ) {
50 $attribs[
'checked'] =
'checked';
53 $label .= Html::element(
'input', $attribs );
56 return Html::rawElement(
'td', [
'class' =>
'mw-label' ] + $cellAttributes, $label );