public function GoogleAnalyticsString::adminSummary in Google Analytics Reports 8.3
Display the filter on the administrative summary
Overrides FilterPluginBase::adminSummary
File
- src/
Plugin/ views/ filter/ GoogleAnalyticsString.php, line 200
Class
- GoogleAnalyticsString
- Basic textfield filter to handle string filtering commands.
Namespace
Drupal\google_analytics_reports\Plugin\views\filterCode
public function adminSummary() {
if (!empty($this->options['exposed'])) {
return $this
->t('exposed');
}
$options = $this
->operatorOptions('short');
$output = '';
if (!empty($options[$this->operator])) {
$output = Html::escape($options[$this->operator]);
}
if (in_array($this->operator, $this
->operatorValues(1))) {
$output .= ' ' . Html::escape($this->value);
}
return $output;
}