You are here

function taxonomy_term_uri in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/taxonomy/taxonomy.module \taxonomy_term_uri()

Entity URI callback.

File

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

Code

function taxonomy_term_uri($term) {
  return new Url('entity.taxonomy_term.canonical', array(
    'taxonomy_term' => $term
      ->id(),
  ));
}