You are here

public function LinksWidget::defaultConfiguration in Facets 8

Gets default configuration for this plugin.

Return value

array An associative array with the default configuration.

Overrides WidgetPluginBase::defaultConfiguration

File

src/Plugin/facets/widget/LinksWidget.php, line 25

Class

LinksWidget
The links widget.

Namespace

Drupal\facets\Plugin\facets\widget

Code

public function defaultConfiguration() {
  return [
    'soft_limit' => 0,
    'soft_limit_settings' => [
      'show_less_label' => 'Show less',
      'show_more_label' => 'Show more',
    ],
    'show_reset_link' => FALSE,
    'hide_reset_when_no_selection' => FALSE,
    'reset_text' => $this
      ->t('Show all'),
  ] + parent::defaultConfiguration();
}