32 array_merge( [
'maxLength' => 255 ], $config )
36 if ( isset( $config[
'namespace'] ) ) {
37 $this->
namespace = $config['namespace'];
39 if ( isset( $config[
'relative'] ) ) {
40 $this->relative = $config[
'relative'];
42 if ( isset( $config[
'suggestions'] ) ) {
43 $this->suggestions = $config[
'suggestions'];
45 if ( isset( $config[
'highlightFirst'] ) ) {
46 $this->highlightFirst = $config[
'highlightFirst'];
48 if ( isset( $config[
'validateTitle'] ) ) {
49 $this->validateTitle = $config[
'validateTitle'];
53 $this->addClasses( [
'mw-widget-titleInputWidget' ] );