Skip to content

Commit

Permalink
BUGFIX: Get ContentContext from NodeData
Browse files Browse the repository at this point in the history
  • Loading branch information
c4ll-m3-j4ck authored Apr 8, 2021
1 parent 780b32c commit ef60c9e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Classes/Service/FusionRenderingService.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,8 @@ class FusionRenderingService
public function render(NodeInterface $node, string $fusionPath, array $contextData = [])
{
$dimensions = $node->getDimensions();
$context = $this->createContentContext($node->getWorkspace()->getName(), $dimensions);
$context = $this->createContextMatchingNodeData($node->getNodeData());

$node = $context->getNodeByIdentifier($node->getIdentifier());

$currentSiteNode = $context->getCurrentSiteNode();
Expand Down

0 comments on commit ef60c9e

Please sign in to comment.