28 $config = array_merge( [
33 parent::__construct( $config );
36 if ( isset( $config[
'performSearchOnClick'] ) ) {
37 $this->performSearchOnClick = $config[
'performSearchOnClick'];
40 if ( isset( $config[
'dataLocation'] ) ) {
42 $this->dataLocation = $config[
'dataLocation'];
45 if ( !empty( $config[
'showDescriptions'] ) ) {
46 $this->showDescriptions =
true;
50 if ( isset( $config[
'autocapitalize'] ) ) {
51 $this->input->setAttributes( [
'autocapitalize' => $config[
'autocapitalize'] ] );
55 $this->addClasses( [
'mw-widget-searchInputWidget' ] );