function StringFilter::adminSummary
Same name in other branches
- 8.9.x core/modules/views/src/Plugin/views/filter/StringFilter.php \Drupal\views\Plugin\views\filter\StringFilter::adminSummary()
- 10 core/modules/views/src/Plugin/views/filter/StringFilter.php \Drupal\views\Plugin\views\filter\StringFilter::adminSummary()
- 11.x core/modules/views/src/Plugin/views/filter/StringFilter.php \Drupal\views\Plugin\views\filter\StringFilter::adminSummary()
Overrides FilterPluginBase::adminSummary
File
-
core/
modules/ views/ src/ Plugin/ views/ filter/ StringFilter.php, line 220
Class
- StringFilter
- Basic textfield filter to handle string filtering commands.
Namespace
Drupal\views\Plugin\views\filterCode
public function adminSummary() {
if ($this->isAGroup()) {
return $this->t('grouped');
}
if (!empty($this->options['exposed'])) {
return $this->t('exposed');
}
$options = $this->operatorOptions('short');
$output = '';
if (!empty($options[$this->operator])) {
$output = $options[$this->operator];
}
if (in_array($this->operator, $this->operatorValues(1))) {
$output .= ' ' . $this->value;
}
return $output;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.