You are here

public function DateItemProcessor::defaultConfiguration in Facets 8

Gets default configuration for this plugin.

Return value

array An associative array with the default configuration.

Overrides ProcessorPluginBase::defaultConfiguration

File

src/Plugin/facets/processor/DateItemProcessor.php, line 94

Class

DateItemProcessor
Provides a processor for dates.

Namespace

Drupal\facets\Plugin\facets\processor

Code

public function defaultConfiguration() {
  return [
    'date_display' => 'actual_date',
    'granularity' => SearchApiDate::FACETAPI_DATE_MONTH,
    'date_format' => '',
  ];
}