5 use OOUI\MultilineTextInputWidget;
38 $this->selectedArray =
$config[
'default'] ?? [];
39 $this->inputName =
$config[
'name'] ??
null;
40 $this->inputPlaceholder =
$config[
'placeholder'] ??
null;
41 $this->input =
$config[
'input'] ?? [];
42 $this->tagLimit =
$config[
'tagLimit'] ??
null;
44 $textarea =
new MultilineTextInputWidget( array_merge( [
45 'name' => $this->inputName,
46 'value' => implode(
"\n", $this->selectedArray ),
49 'mw-widgets-tagMultiselectWidget-multilineTextInputWidget'
55 $this->appendContent( $textarea, $pending );
56 $this->addClasses( [
'mw-widgets-tagMultiselectWidget' ] );
60 if ( $this->selectedArray !==
null ) {
63 if ( $this->inputName !==
null ) {
66 if ( $this->inputPlaceholder !==
null ) {
69 if ( $this->input !==
null ) {
72 if ( $this->tagLimit !==
null ) {
77 return parent::getConfig(
$config );