public function isSnapshotActive(PageSnapshotInterface $page)
{
$jsonObject = json_decode($page->getVersionedData());
$now = new \DateTime();
if ($now->getTimestamp() >= $this->getActiveStart($jsonObject)->getTimestamp() && $now->getTimestamp() <= $this->getActiveEnd($jsonObject)->getTimestamp()) {
return $jsonObject->status == PageInterface::STATUS_PUBLISHED;
}
return false;
}