Generate the content feed for a taxonomy term.
Drupal\taxonomy\Term $term: The taxonomy term entity.
function taxonomy_term_feed(Term $term) {
$channel['link'] = url('taxonomy/term/' . $term->tid, array(
'absolute' => TRUE,
));
$channel['title'] = config('system.site')
->get('name') . ' - ' . $term
->label();
// Only display the description if we have a single term, to avoid clutter and confusion.
// HTML will be removed from feed description.
$channel['description'] = check_markup($term->description, $term->format, '', TRUE);
$nids = taxonomy_select_nodes($term->tid, FALSE, config('system.rss')
->get('items.limit'));
return node_feed($nids, $channel);
}