You are here

public function ShowTextWhenEmptyProcessor::defaultConfiguration in Facets 8

Gets default configuration for this plugin.

Return value

array An associative array with the default configuration.

Overrides ProcessorPluginBase::defaultConfiguration

File

modules/facets_summary/src/Plugin/facets_summary/processor/ShowTextWhenEmptyProcessor.php, line 73

Class

ShowTextWhenEmptyProcessor
Provides a processor that shows a text when there are no results.

Namespace

Drupal\facets_summary\Plugin\facets_summary\processor

Code

public function defaultConfiguration() {
  return [
    'text' => [
      'format' => 'plain_text',
      'value' => $this
        ->t('No results found.'),
    ],
  ];
}