- Status changed to Closed: outdated
3 months ago 11:54am 22 August 2024 - π³πΏNew Zealand quietone
Currently, any implementations of \Drupal\Core\Entity\EntityForm::copyFormValuesToEntity(), or any #entity_builders
callback will be run twice on form submit.
This is usually not a problem, as they copy things from $form_state->getValues() to the $entity.
It becomes problematic when your code checks the old values in comparison to the new values. In this case, on the second run, different code paths will be followed.
This is purposeful, because content entities must be updated with the form values in order to be validated.
Document it.
Document it.
N/A
N/A
N/A
Closed: outdated
11.0 π₯
Primarily changes documentation, not code. For Drupal core issues, select the Documentation component instead of using this tag. In general, component selection is preferred over tag selection.
Used to track the progress of issues reviewed by the Drupal Needs Review Queue Initiative.
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.