function Taxonomy::title

Override the behavior of title(). Get the title of the node.

Overrides Numeric::title

File

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

Class

Taxonomy
Argument handler for basic taxonomy tid.

Namespace

Drupal\taxonomy\Plugin\views\argument

Code

function title() {

  // There might be no valid argument.
  if ($this->argument) {
    $term = taxonomy_term_load($this->argument);
    if (!empty($term)) {
      return check_plain($term->name);
    }
  }

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