You are here

public function String::adminSummary in Views (for Drupal 7) 8.3

Display the filter on the administrative summary

Overrides FilterPluginBase::adminSummary

File

lib/Drupal/views/Plugin/views/filter/String.php, line 160
Definition of Drupal\views\Plugin\views\filter\String.

Class

String
Basic textfield filter to handle string filtering commands including equality, like, not like, etc.

Namespace

Drupal\views\Plugin\views\filter

Code

public function adminSummary() {
  if ($this
    ->isAGroup()) {
    return t('grouped');
  }
  if (!empty($this->options['exposed'])) {
    return t('exposed');
  }
  $options = $this
    ->operator_options('short');
  $output = '';
  if (!empty($options[$this->operator])) {
    $output = check_plain($options[$this->operator]);
  }
  if (in_array($this->operator, $this
    ->operator_values(1))) {
    $output .= ' ' . check_plain($this->value);
  }
  return $output;
}