You are here

public function Grouping::defaultConfiguration in Search API Grouping 8

Gets default configuration for this plugin.

Return value

array An associative array with the default configuration.

Overrides FieldsProcessorPluginBase::defaultConfiguration

File

src/Plugin/search_api/processor/Grouping.php, line 32

Class

Grouping
Processor for grouping up items on behalf of user defined fields.

Namespace

Drupal\search_api_grouping\Plugin\search_api\processor

Code

public function defaultConfiguration() {
  $configuration = parent::defaultConfiguration();
  $configuration += [
    'grouping_fields' => [],
    'group_sort' => [],
    'group_sort_direction' => 'asc',
    'truncate' => FALSE,
    'group_limit' => 1,
  ];
  return $configuration;
}