'textfield', // '#title' => $this->t('Search'), '#maxlength' => 64, '#size' => 25, '#weight' => '0', '#attributes' => [ "placeholder" => $this->t('Search'), // "@keyup" => "keyup", // "@keyup.enter" => "submit", "v-model" => "typed", "v-focus" => "", // "v-on:select" => "typed", ], '#autocomplete_route_name' => 'materio_sapi.search_autocomplete', ]; $form['searchautocomplete'] = [ '#type' => 'hidden', '#attributes' => [ "v-model" => "autocomplete" ], ]; // $form['submit'] = [ // '#type' => 'submit', // '#value' => $this->t('Search'), // '#attributes' => [ // '@click.prevent' => "submit", // ] // ]; $form['submit'] = array( '#type' => 'button', // '#src' => '',//drupal_get_path('module', 'materio_search_api') . '/images/search.png', '#value' => t('Search'), // '#prefix' => '