Ovako je Davor, majstorski, renderovao formu kao pseudo field.

PHOTO EMBED

Wed Apr 27 2022 20:09:10 GMT+0000 (Coordinated Universal Time)

Saved by @igor #drupal #pseudo-field #form-render

if ($display->getComponent('item_approvement_table')) {
      $form = \Drupal::classResolver()->getInstanceFromDefinition(PaymentRequestItemsApprovementForm::class);
      $form->setPaymentRequest($entity);
      $form_state = new FormState();
      $form_array = \Drupal::formBuilder()->buildForm($form, $form_state);
      $form_array['#current_tab_redirect'] = TRUE;
      $build['item_approvement_table'] = $form_array;
    }
content_copyCOPY