Commit cf4aa925 authored by renatog's avatar renatog Committed by renatog
Browse files

Issue #3273596 by RenatoG: Implement auto-complete in the attribute key

parent f49a88f3
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -625,6 +625,11 @@ class BlockClassHelperService {
            '#maxlength' => $maxlength_multiple_attributes,
          ];

          // Enable the auto-complete only is selected in the settings page.
          if (!empty($config->get('enable_auto_complete'))) {
            $form['multiple_attributes']['third_party_settings']['block_class']['attribute_' . $index]['attribute_key_' . $index]['#autocomplete_route_name'] = 'block_class.autocomplete_attributes';
          }

          $form['multiple_attributes']['third_party_settings']['block_class']['attribute_' . $index]['attribute_value_' . $index] = [
            '#type' => 'textfield',
            '#title' => $this->t('Attribute Value'),