You are here

public function SimpleSearchFormBlock::defaultConfiguration in Simple search form 8

Overrides BlockPluginTrait::defaultConfiguration

File

src/Plugin/Block/SimpleSearchFormBlock.php, line 74

Class

SimpleSearchFormBlock
Provides a 'SimpleSearchFormBlock' block.

Namespace

Drupal\simple_search_form\Plugin\Block

Code

public function defaultConfiguration() {
  $config = parent::defaultConfiguration();
  $config['action_path'] = '';
  $config['get_parameter'] = '';
  $config['input_type'] = 'search';
  $config['search_api_autocomplete'] = [
    'search_id' => '',
    'display' => '',
    'arguments' => '',
    'filter' => '',
  ];
  $config['input_label_display'] = 'before';
  $config['input_label'] = 'Search';
  $config['input_placeholder'] = '';
  $config['input_css_classes'] = '';
  $config['submit_display'] = TRUE;
  $config['submit_label'] = 'Find';
  $config['input_keep_value'] = FALSE;
  return $config;
}