function IndexTidDepth::title
Same name in other branches
- 8.9.x core/modules/taxonomy/src/Plugin/views/argument/IndexTidDepth.php \Drupal\taxonomy\Plugin\views\argument\IndexTidDepth::title()
- 10 core/modules/taxonomy/src/Plugin/views/argument/IndexTidDepth.php \Drupal\taxonomy\Plugin\views\argument\IndexTidDepth::title()
- 11.x core/modules/taxonomy/src/Plugin/views/argument/IndexTidDepth.php \Drupal\taxonomy\Plugin\views\argument\IndexTidDepth::title()
Overrides ArgumentPluginBase::title
File
-
core/
modules/ taxonomy/ src/ Plugin/ views/ argument/ IndexTidDepth.php, line 114
Class
- IndexTidDepth
- Argument handler for taxonomy terms with depth.
Namespace
Drupal\taxonomy\Plugin\views\argumentCode
public function title() {
$term = $this->termStorage
->load($this->argument);
if (!empty($term)) {
return $term->getName();
}
// TODO review text
return $this->t('No name');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.