You are here

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

Display the filter on the administrative summary

Overrides InOperator::adminSummary

File

lib/Views/taxonomy/Plugin/views/filter/TaxonomyIndexTid.php, line 359
Definition of views_handler_filter_term_node_tid.

Class

TaxonomyIndexTid
Filter by term id.

Namespace

Views\taxonomy\Plugin\views\filter

Code

public function adminSummary() {

  // set up $this->value_options for the parent summary
  $this->value_options = array();
  if ($this->value) {
    $this->value = array_filter($this->value);
    $result = db_select('taxonomy_term_data', 'td')
      ->fields('td')
      ->condition('td.tid', $this->value)
      ->execute();
    foreach ($result as $term) {
      $this->value_options[$term->tid] = $term->name;
    }
  }
  return parent::adminSummary();
}