public function showAction($identifier, $workspaceName = 'live', array $dimensions = array())
{
$contentContext = $this->createContentContext($workspaceName, $dimensions);
/** @var $node NodeInterface */
$node = $contentContext->getNodeByIdentifier($identifier);
if ($node === null) {
$this->addExistingNodeVariantInformationToResponse($identifier, $contentContext);
$this->throwStatus(404);
}
$convertedNodeProperties = $this->nodePropertyConverterService->getPropertiesArray($node);
array_walk($convertedNodeProperties, function (&$value) {
if (is_array($value)) {
$value = json_encode($value);
}
});
$this->view->assignMultiple(array('node' => $node, 'convertedNodeProperties' => $convertedNodeProperties));
}