30 $config = array_merge( [
35 parent::__construct( $config );
38 if ( isset( $config[
'performSearchOnClick'] ) ) {
39 $this->performSearchOnClick = $config[
'performSearchOnClick'];
42 if ( isset( $config[
'dataLocation'] ) ) {
44 $this->dataLocation = $config[
'dataLocation'];
47 if ( !empty( $config[
'showDescriptions'] ) ) {
48 $this->showDescriptions =
true;
52 if ( isset( $config[
'autocapitalize'] ) ) {
53 $this->input->setAttributes( [
'autocapitalize' => $config[
'autocapitalize'] ] );
57 $this->addClasses( [
'mw-widget-searchInputWidget' ] );