function Rss::getDescription

Same name in other branches
  1. 9 core/modules/views/src/Plugin/views/style/Rss.php \Drupal\views\Plugin\views\style\Rss::getDescription()
  2. 10 core/modules/views/src/Plugin/views/style/Rss.php \Drupal\views\Plugin\views\style\Rss::getDescription()
  3. 11.x core/modules/views/src/Plugin/views/style/Rss.php \Drupal\views\Plugin\views\style\Rss::getDescription()

Get RSS feed description.

Return value

string The string containing the description with the tokens replaced.

File

core/modules/views/src/Plugin/views/style/Rss.php, line 90

Class

Rss
Default style plugin to render an RSS feed.

Namespace

Drupal\views\Plugin\views\style

Code

public function getDescription() {
    $description = $this->options['description'];
    // Allow substitutions from the first row.
    $description = $this->tokenizeValue($description, 0);
    return $description;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.