function taxonomy_term_uri
Same name in other branches
- 7.x modules/taxonomy/taxonomy.module \taxonomy_term_uri()
- 9 core/modules/taxonomy/taxonomy.module \taxonomy_term_uri()
Entity URI callback.
File
-
core/
modules/ taxonomy/ taxonomy.module, line 96
Code
function taxonomy_term_uri($term) {
return new Url('entity.taxonomy_term.canonical', [
'taxonomy_term' => $term->id(),
]);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.