I
I
Igor2017-08-29 23:25:02
Drupal
Igor, 2017-08-29 23:25:02

Why does the user data correction form give an error when saving?

I got the data correction form code using this miracle code:

$entity = \Drupal::entityTypeManager()->getStorage('user')->create(array());
      $form = $this->entityFormBuilder()->getForm($entity);
      $txtBlock = \Drupal::service('renderer')->render($form);

Next, I bring it to the block. When you click on the save button, the site tries to go to a non-existent page with a crazy name like http://site_name/form_action_p_pvdeGsVG5zNF_XLGPTv...
Who knows where to dig?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question