You are here

public function RssFields::getDescription in Views RSS 8.3

Same name and namespace in other branches
  1. 8.2 src/Plugin/views/style/RssFields.php \Drupal\views_rss\Plugin\views\style\RssFields::getDescription()

Get RSS feed description.

Return value

string The string containing the description with the tokens replaced.

File

src/Plugin/views/style/RssFields.php, line 371
Definition of Drupal\views\Plugin\views\style\Rss.

Class

RssFields
Default style plugin to render an RSS feed from fields.

Namespace

Drupal\views_rss\Plugin\views\style

Code

public function getDescription() {
  $description = $this->options['description'];

  // Allow substitutions from the first row.
  $description = $this
    ->tokenizeValue($description, 0);
  return $description;
}