@trigger_error("Calling drupal_static_reset() with 'taxonomy_vocabulary_get_names' as argument is deprecated in drupal:9.3.0 and is removed from drupal:10.0.0. There is no replacement for this usage. See https://www.drupal.org/node/3039041",E_USER_DEPRECATED);
@trigger_error(__METHOD__.' is deprecated in drupal:9.3.0 and is removed from drupal:10.0.0. There is no replacement; route title callbacks are internal. See https://www.drupal.org/project/drupal/issues/3037157.',E_USER_DEPRECATED);
@trigger_error('The '.__NAMESPACE__.'\Term is deprecated in drupal:9.3.0 and is removed from drupal:10.0.0. Use \Drupal\views\Plugin\views\argument_validator\Entity instead. See https://www.drupal.org/node/3221870',E_USER_DEPRECATED);
@trigger_error('The current_user service must be passed to '.__NAMESPACE__.'\TaxonomyIndexTid::__construct(). It was added in drupal:8.9.0 and will be required before drupal:10.0.0.',E_USER_DEPRECATED);
@@ -47,19 +46,6 @@ function taxonomy_help($route_name, RouteMatchInterface $route_match) {
}
}
/**
* Entity URI callback.
*
* @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
*/
functiontaxonomy_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();
}
/**
* Implements hook_theme().
*/
@@ -151,127 +137,6 @@ function taxonomy_term_is_page(Term $term) {
returnFALSE;
}
/**
* Clear all static cache variables for terms.
*
* @deprecated in drupal:9.3.0 and is removed from drupal:10.0.0. Use
@trigger_error("taxonomy_terms_static_reset() is deprecated in drupal:9.3.0 and is removed from drupal:10.0.0. Use \Drupal::entityTypeManager()->getStorage('taxonomy_term')->resetCache() instead. See https://www.drupal.org/node/3039041",E_USER_DEPRECATED);
@trigger_error('taxonomy_vocabulary_static_reset() is deprecated in drupal:9.3.0 and is removed from drupal:10.0.0. Use \Drupal::entityTypeManager()->getStorage("taxonomy_vocabulary")->resetCache($ids) instead. See https://www.drupal.org/node/3039041',E_USER_DEPRECATED);
@trigger_error("taxonomy_vocabulary_get_names() is deprecated in drupal:9.3.0 and is removed from drupal:10.0.0. Use \Drupal::entityQuery('taxonomy_vocabulary')->execute() instead. See https://www.drupal.org/node/3039041",E_USER_DEPRECATED);
@trigger_error('taxonomy_term_load_multiple_by_name() is deprecated in drupal:9.3.0 and is removed from drupal:10.0.0. Use \Drupal::entityTypeManager()->getStorage("taxonomy_vocabulary")->loadByProperties(["name" => $name, "vid" => $vid]) instead, to get a list of taxonomy term entities having the same name and keyed by their term ID. See https://www.drupal.org/node/3039041',E_USER_DEPRECATED);
@trigger_error('taxonomy_implode_tags() is deprecated in drupal:9.3.0 and is removed from drupal:10.0.0. Use \Drupal\Core\Entity\Element\EntityAutocomplete::getEntityLabels() instead. See https://www.drupal.org/node/3039041',E_USER_DEPRECATED);
$typed_tags=[];
foreach($tagsas$tag){
// Extract terms belonging to the vocabulary in question.
if(!isset($vid)||$tag->bundle()==$vid){
// Make sure we have a completed loaded taxonomy term.
// Commas and quotes in tag names are special cases, so encode 'em.
$typed_tags[]=Tags::encode($label);
}
}
}
returnimplode(', ',$typed_tags);
}
/**
* Title callback for term pages.
*
* @param \Drupal\taxonomy\Entity\Term $term
* A taxonomy term entity.
*
* @return
* The term name to be used as the page title.
*
* @deprecated in drupal:9.3.0 and is removed from drupal:10.0.0. Use
* $term->label() instead.
*
* @see https://www.drupal.org/node/3039041
*/
functiontaxonomy_term_title(Term$term){
@trigger_error('taxonomy_term_title() is deprecated in drupal:9.3.0 and is removed from drupal:10.0.0. Use $term->label() instead. See https://www.drupal.org/node/3039041',E_USER_DEPRECATED);