function IndexTidDepth::title

Get the title this argument will assign the view, given the argument.

This usually needs to be overridden to provide a proper title.

Overrides ArgumentPluginBase::title

File

drupal/core/modules/taxonomy/lib/Drupal/taxonomy/Plugin/views/argument/IndexTidDepth.php, line 152
Definition of Drupal\taxonomy\Plugin\views\argument\IndexTidDepth.

Class

IndexTidDepth
Argument handler for taxonomy terms with depth.

Namespace

Drupal\taxonomy\Plugin\views\argument

Code

function title() {
  $term = taxonomy_term_load($this->argument);
  if (!empty($term)) {
    return check_plain($term->name);
  }

  // TODO review text
  return t('No name');
}