taxonomy_term_uri

taxonomy_term_uri($term)

Entity URI callback.

File

core/modules/taxonomy/taxonomy.module, line 92
Enables the organization of content into categories.

Code

1
2
3
4
5
function taxonomy_term_uri($term) {
  return new Url('entity.taxonomy_term.canonical', array(
    'taxonomy_term' => $term->id(),
  ));
}
doc_Drupal
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.