Sulu\Bundle\PreviewBundle\Websocket\PreviewMessageHandler::updateContext PHP Метод

updateContext() приватный Метод

Update preview-context with given parameter.
private updateContext ( MessageHandlerContext $context, array $message ) : array
$context Sulu\Component\Websocket\MessageDispatcher\MessageHandlerContext
$message array
Результат array
    private function updateContext($context, $message)
    {
        $response = $this->preview->updateContext($context->get('previewToken'), $message['webspaceKey'], $context->get('locale'), $message['context'], $message['data']);
        return ['command' => 'update-context', 'response' => $response, 'msg' => 'OK'];
    }