Skip to content

Commit

Permalink
DP-36788: Set iframe_url markup in EntityViewBuildAlterGravityFormToken
Browse files Browse the repository at this point in the history
Added a line to set the iframe_url markup in the field_form_url build array. This ensures the iframe_url is properly rendered when the entity view build is altered. Included minor adjustments to improve token handling logic.
  • Loading branch information
dstorozhuk committed Jan 31, 2025
1 parent b2b9226 commit 762949e
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ public function alter(array &$build, EntityInterface $entity, EntityViewDisplayI
return;
}

$build["field_form_url"]["iframe_url"]['#markup'] = $iframe_url->toString();
$gf_token = $this->requestStack->getCurrentRequest()->get('gf_token');
if (empty($gf_token)) {
return;
Expand Down

0 comments on commit 762949e

Please sign in to comment.