public function AdministrativeArea::adminSummary in Address 8
Display the filter on the administrative summary
Overrides InOperator::adminSummary
File
- src/
Plugin/ views/ filter/ AdministrativeArea.php, line 559
Class
- AdministrativeArea
- Filter by administrative area.
Namespace
Drupal\address\Plugin\views\filterCode
public function adminSummary() {
switch ($this->options['country']['country_source']) {
case 'argument':
return $this
->t('exposed: country set via contextual filter');
case 'filter':
return $this
->t('exposed: country set via exposed filter');
case 'static':
if (!empty($this->options['exposed'])) {
return $this
->t('exposed: fixed country: @country', [
'@country' => $this->options['country']['country_static_code'],
]);
}
return $this
->t('fixed country: @country', [
'@country' => $this->options['country']['country_static_code'],
]);
}
return $this
->t('broken configuration');
}