You are here

public function JsonFeedSerializer::getDescription in JSON Feed 8

Get RSS feed description.

Return value

string The string containing the description with the tokens replaced.

1 call to JsonFeedSerializer::getDescription()
JsonFeedSerializer::render in src/Plugin/views/style/JsonFeedSerializer.php
Render the display in this style.

File

src/Plugin/views/style/JsonFeedSerializer.php, line 151

Class

JsonFeedSerializer
Default style plugin to render a JSON feed.

Namespace

Drupal\json_feed\Plugin\views\style

Code

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

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