Issue #2702401: Add integration for the user entity type
2 unresolved threads
Merge request reports
Activity
31 31 $entity_types['node']->setHandlerClass('inline_form', '\Drupal\inline_entity_form\Form\NodeInlineForm'); 32 32 } 33 33 34 if (!$entity_types['user']->getHandlerClass('inline_form')) { - src/Form/UserInlineForm.php 0 → 100644
56 /** 57 * Internal helper. 58 * 59 * Returns handler for the user form. 60 * 61 * @param \Drupal\Core\Entity\ContentEntityInterface $entity 62 * User account entity. 63 * @param \Drupal\Core\Form\FormStateInterface $form_state 64 * Current form state. 65 * @param string $form_mode 66 * User form mode (usually it's "register"). 67 * 68 * @return \Drupal\Core\Form\FormInterface 69 * User account form. 70 */ 71 protected function getUserFormObject( I tried to start from the patch on comment 47 but in the end, I'm starting to think if it's a good a idea to involve
AccountForm
at all. The user entity seems to have a lot of magic going on. It might be easier to have a simple version of the account form hard-coded into theUserInlineForm
. The biggest roadblock is theaccount
array that is introduced byAccountForm
.
Please register or sign in to reply