@@ -31,8 +31,8 @@ public function __construct(
3131 /**
3232 * Builds the response.
3333 */
34- public function __invoke (Request $ request , WebformInterface $ webform , string $ handler ): array |Response {
35- $ handler = $ webform ->getHandler ($ handler );
34+ public function __invoke (Request $ request , WebformInterface $ webform , string $ webform_handler ): array |Response {
35+ $ handler = $ webform ->getHandler ($ webform_handler );
3636 $ submissionIds = array_keys ($ this ->submissionStorage ->getQuery ()
3737 ->accessCheck ()
3838 ->condition ('webform_id ' , $ webform ->id ())
@@ -48,7 +48,7 @@ public function __invoke(Request $request, WebformInterface $webform, string $ha
4848 $ previewUrls = array_map (
4949 static fn ($ submission ) => Url::fromRoute ('os2forms_fordelingskomponent.fordelingskomponent_payload.preview ' , [
5050 'webform ' => $ webform ->id (),
51- 'handler ' => $ handler ->getHandlerId (),
51+ 'webform_handler ' => $ handler ->getHandlerId (),
5252 'submission ' => $ submission ,
5353 ]),
5454 array_filter ([
@@ -61,7 +61,7 @@ public function __invoke(Request $request, WebformInterface $webform, string $ha
6161 $ renderUrl = NULL !== $ currentSubmission
6262 ? Url::fromRoute ('os2forms_fordelingskomponent.fordelingskomponent_payload.preview_render ' , [
6363 'webform ' => $ webform ->id (),
64- 'handler ' => $ handler ->getHandlerId (),
64+ 'webform_handler ' => $ handler ->getHandlerId (),
6565 'submission ' => $ currentSubmission ,
6666 ])
6767 : NULL ;
0 commit comments