You are here

protected function JsonFeedSerializer::isFeedExpired in JSON Feed 8

Determine if the feed is expired.

Return value

bool TRUE if the feed is expired, else FALSE.

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

File

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

Class

JsonFeedSerializer
Default style plugin to render a JSON feed.

Namespace

Drupal\json_feed\Plugin\views\style

Code

protected function isFeedExpired() {
  if (empty($this->options['expired'])) {
    return FALSE;
  }
  return $this->options['expired'] ? TRUE : FALSE;
}