Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. IndexTidDepth.php

function IndexTidDepth::title

Overrides ArgumentPluginBase::title

File

core/modules/taxonomy/src/Plugin/views/argument/IndexTidDepth.php, line 109

Class

IndexTidDepth
Argument handler for taxonomy terms with depth.

Namespace

Drupal\taxonomy\Plugin\views\argument

Code

public function title() {
    $term = $this->entityRepository
        ->getCanonical('taxonomy_term', $this->argument);
    if (!empty($term)) {
        return $term->label();
    }
    // @todo Review text.
    return $this->t('No name');
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal