You are here

public function DateRecurFilter::adminSummary in Recurring Dates Field 8.2

Same name and namespace in other branches
  1. 3.x src/Plugin/views/filter/DateRecurFilter.php \Drupal\date_recur\Plugin\views\filter\DateRecurFilter::adminSummary()
  2. 3.0.x src/Plugin/views/filter/DateRecurFilter.php \Drupal\date_recur\Plugin\views\filter\DateRecurFilter::adminSummary()
  3. 3.1.x src/Plugin/views/filter/DateRecurFilter.php \Drupal\date_recur\Plugin\views\filter\DateRecurFilter::adminSummary()

Display the filter on the administrative summary

Overrides FilterPluginBase::adminSummary

File

src/Plugin/views/filter/DateRecurFilter.php, line 341

Class

DateRecurFilter
Date range/occurrence filter.

Namespace

Drupal\date_recur\Plugin\views\filter

Code

public function adminSummary() : TranslatableMarkup {
  $granularityLabels = DateRecurGranularityMap::granularityLabels();
  $granularity = $this->options['value_granularity'];
  return $granularityLabels[$granularity];
}