Drupal 8/9 add term id as a class on each taxonomy term field

In Drupal 8 and Drupal 9, use the hook_preprocess_field() function to add term id as a class on every taxonomy term field in the .theme file.
copy-icon

Comments

Authors

Read Next