You are here

public function WidgetPluginBase::defaultConfiguration in Facets 8

Gets default configuration for this plugin.

Return value

array An associative array with the default configuration.

Overrides ConfigurableInterface::defaultConfiguration

4 calls to WidgetPluginBase::defaultConfiguration()
DropdownWidget::defaultConfiguration in src/Plugin/facets/widget/DropdownWidget.php
Gets default configuration for this plugin.
LinksWidget::defaultConfiguration in src/Plugin/facets/widget/LinksWidget.php
Gets default configuration for this plugin.
SliderWidget::defaultConfiguration in modules/facets_range_widget/src/Plugin/facets/widget/SliderWidget.php
Gets default configuration for this plugin.
WidgetPluginBase::setConfiguration in src/Widget/WidgetPluginBase.php
Sets the configuration for this plugin instance.
3 methods override WidgetPluginBase::defaultConfiguration()
DropdownWidget::defaultConfiguration in src/Plugin/facets/widget/DropdownWidget.php
Gets default configuration for this plugin.
LinksWidget::defaultConfiguration in src/Plugin/facets/widget/LinksWidget.php
Gets default configuration for this plugin.
SliderWidget::defaultConfiguration in modules/facets_range_widget/src/Plugin/facets/widget/SliderWidget.php
Gets default configuration for this plugin.

File

src/Widget/WidgetPluginBase.php, line 115

Class

WidgetPluginBase
A base class for widgets that implements most of the boilerplate.

Namespace

Drupal\facets\Widget

Code

public function defaultConfiguration() {
  return [
    'show_numbers' => FALSE,
  ];
}