public function onAPIContentException(APIContentExceptionEvent $event) { $exception = $event->getApiException(); $contentMeta = $event->getContentMeta(); if ($exception instanceof ConverterNotFound) { if (isset($this->logger)) { $this->logger->notice('Missing field converter in legacy storage engine, forwarding to legacy kernel.', array('content' => $contentMeta)); } if (isset($contentMeta['locationId'])) { $event->setContentView($this->legacyLVP->getView(new Location(array('id' => $contentMeta['locationId'])), $contentMeta['viewType'])); } else { if (isset($contentMeta['contentId'])) { $event->setContentView($this->legacyCVP->getView(new ContentInfo(array('id' => $contentMeta['contentId'])), $contentMeta['viewType'])); } } $event->stopPropagation(); } }