src/Helper/PageHelper.php
public function unserializePageSnapshotData(PageSnapshotInterface $pageSnapshot, $unserializeTranslations = true)
    {
        $context = new PageSnapshotDeserializationContext();
        $context->setDeserializeTranslations($unserializeTranslations);

        return $this->serializer->deserialize($pageSnapshot->getVersionedData(), $pageSnapshot->getResourceName(), 'json', $context);
    }
public function unserializePageSnapshotData(PageSnapshotInterface $pageSnapshot, $unserializeTranslations = true)
    {
        $context = new PageSnapshotDeserializationContext();
        $context->setDeserializeTranslations($unserializeTranslations);

        return $this->serializer->deserialize($pageSnapshot->getVersionedData(), $pageSnapshot->getResourceName(), 'json', $context);
    }
public function unserializePageSnapshotData ( PageSnapshotInterface $ pageSnapshot , $ unserializeTranslations = true ) { $ context = new PageSnapshotDeserializationContext ( ) ; $ context -> setDeserializeTranslations ( $ unserializeTranslations ) ; return $ this -> serializer -> deserialize ( $ pageSnapshot -> getVersionedData ( ) , $ pageSnapshot -> getResourceName ( ) , 'json' , $ context ) ; }
Unserialize the PageSnapshot data into a page object.

@param PageSnapshotInterface $pageSnapshot
@param bool                  $unserializeTranslations

@return array|\JMS\Serializer\scalar|object
Unserialize the PageSnapshot data into a page object .