35 $config = array_merge( [
39 '@phan-var array $config';
41 parent::__construct( $config );
44 if ( isset( $config[
'performSearchOnClick'] ) ) {
45 $this->performSearchOnClick = $config[
'performSearchOnClick'];
48 if ( isset( $config[
'dataLocation'] ) ) {
50 $this->dataLocation = $config[
'dataLocation'];
53 if ( !empty( $config[
'showDescriptions'] ) ) {
54 $this->showDescriptions =
true;
58 if ( isset( $config[
'autocapitalize'] ) ) {
59 $this->input->setAttributes( [
'autocapitalize' => $config[
'autocapitalize'] ] );
63 $this->addClasses( [
'mw-widget-searchInputWidget' ] );