You are here

function Taxonomy::title in Views (for Drupal 7) 8.3

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

Overrides Numeric::title

File

lib/Views/taxonomy/Plugin/views/argument/Taxonomy.php, line 28
Definition of Views\taxonomy\Plugin\views\argument\Taxonomy.

Class

Taxonomy
Argument handler for basic taxonomy tid.

Namespace

Views\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');
}