function taxonomy_term_feed

Generate the content feed for a taxonomy term.

Parameters

Drupal\taxonomy\Term $term: The taxonomy term entity.

1 string reference to 'taxonomy_term_feed'
taxonomy_menu in drupal/core/modules/taxonomy/taxonomy.module
Implements hook_menu().

File

drupal/core/modules/taxonomy/taxonomy.pages.inc, line 73
Page callbacks for the taxonomy module.

Code

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);
}