function IndexTidDepth::title in Views (for Drupal 7) 8.3
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
- lib/
Views/ taxonomy/ Plugin/ views/ argument/ IndexTidDepth.php, line 152 - Definition of Views\taxonomy\Plugin\views\argument\IndexTidDepth.
Class
- IndexTidDepth
- Argument handler for taxonomy terms with depth.
Namespace
Views\taxonomy\Plugin\views\argumentCode
function title() {
$term = taxonomy_term_load($this->argument);
if (!empty($term)) {
return check_plain($term->name);
}
// TODO review text
return t('No name');
}