function theme_aggregator_block_item

Returns HTML for an individual feed item for display in the block.

Parameters

$variables: An associative array containing:

  • item: The item to be displayed.
  • feed: Not used.

Related topics

2 theme calls to theme_aggregator_block_item()
AggregatorCategoryBlock::build in drupal/core/modules/aggregator/lib/Drupal/aggregator/Plugin/Block/AggregatorCategoryBlock.php
Builds and returns the renderable array for this block plugin.
AggregatorFeedBlock::build in drupal/core/modules/aggregator/lib/Drupal/aggregator/Plugin/Block/AggregatorFeedBlock.php
Builds and returns the renderable array for this block plugin.

File

drupal/core/modules/aggregator/aggregator.module, line 521
Used to aggregate syndicated content (RSS, RDF, and Atom).

Code

function theme_aggregator_block_item($variables) {

  // Display the external link to the item.
  return '<a href="' . check_url($variables['item']->link) . '">' . check_plain($variables['item']->title) . "</a>\n";
}