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