You are here

function taxonomy_term_uri in Drupal 8

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

Entity URI callback.

File

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

Code

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