function views_taxonomy_term_name_depth_views_data_alter in Views Taxonomy Term Name Depth 8.6
Same name and namespace in other branches
- 8 views_taxonomy_term_name_depth.views.inc \views_taxonomy_term_name_depth_views_data_alter()
- 8.3 views_taxonomy_term_name_depth.views.inc \views_taxonomy_term_name_depth_views_data_alter()
- 7.x views_taxonomy_term_name_depth.views.inc \views_taxonomy_term_name_depth_views_data_alter()
Implements hook_views_data_alter().
File
- ./
views_taxonomy_term_name_depth.views.inc, line 11 - Contains Views Taxonomy Term Name Depth hooks.
Code
function views_taxonomy_term_name_depth_views_data_alter(&$data) {
$data['node_field_data']['term_node_taxonomy_name_depth'] = [
'help' => t('Display content if it has the selected taxonomy terms, or children of the selected terms. Due to additional complexity, this has fewer options than the versions without depth.'),
'real field' => 'nid',
'argument' => [
'title' => t('Has taxonomy term NAME (with depth)'),
'id' => 'taxonomy_index_name_depth',
'accept depth modifier' => TRUE,
],
];
}