You are here

public function SortWidgetBase::defaultConfiguration in Better Exposed Filters 8.5

Same name and namespace in other branches
  1. 8.4 src/Plugin/better_exposed_filters/sort/SortWidgetBase.php \Drupal\better_exposed_filters\Plugin\better_exposed_filters\sort\SortWidgetBase::defaultConfiguration()

Gets default configuration for this plugin.

Return value

array An associative array with the default configuration.

Overrides BetterExposedFiltersWidgetBase::defaultConfiguration

File

src/Plugin/better_exposed_filters/sort/SortWidgetBase.php, line 32

Class

SortWidgetBase
Base class for Better exposed pager widget plugins.

Namespace

Drupal\better_exposed_filters\Plugin\better_exposed_filters\sort

Code

public function defaultConfiguration() {
  return parent::defaultConfiguration() + [
    'advanced' => [
      'collapsible' => FALSE,
      'collapsible_label' => $this
        ->t('Sort options'),
      'combine' => FALSE,
      'combine_rewrite' => '',
      'is_secondary' => FALSE,
      'reset' => FALSE,
      'reset_label' => '',
    ],
  ];
}