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