function taxonomy_term_uri

Same name in other branches
  1. 7.x modules/taxonomy/taxonomy.module \taxonomy_term_uri()
  2. 8.9.x core/modules/taxonomy/taxonomy.module \taxonomy_term_uri()

Entity URI callback.

Deprecated

in drupal:9.3.0 and is removed from drupal:10.0.0. Use $term->toUrl() instead.

See also

https://www.drupal.org/node/3039041

1 call to taxonomy_term_uri()
TaxonomyDeprecationTest::testTaxonomyDeprecations in core/modules/taxonomy/tests/src/Kernel/TaxonomyDeprecationTest.php

File

core/modules/taxonomy/taxonomy.module, line 58

Code

function taxonomy_term_uri($term) {
    @trigger_error('taxonomy_term_uri() is deprecated in drupal:9.3.0 and is removed from drupal:10.0.0. Use $term->toUrl() instead. See https://www.drupal.org/node/3039041', E_USER_DEPRECATED);
    return $term->toUrl();
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.