- 🇬🇧United Kingdom catch
I'm not sure I understand #26.
The current patch looks like this:
+++ b/core/lib/Drupal/Core/Entity/EntityForm.php @@ -359,10 +359,10 @@ public function getEntityFromRouteMatch(RouteMatchInterface $route_match, $entit - if (($bundle_entity_type_id = $entity_type->getBundleEntityType()) && $route_match->getRawParameter($bundle_entity_type_id)) { + if (($bundle_entity_type_id = $entity_type->getBundleEntityType()) && $route_match->getParameter($bundle_entity_type_id)) { $values[$bundle_key] = $route_match->getParameter($bundle_entity_type_id)->id(); }
Note the assignment doesn't change - that is calling ::getParameter(), it's only the if check that calls getRawParameter().
Tagging for re-roll - this needs conversion to an MR. We can probably base the test coverage on the issues found in 📌 [PP-1] Use entity route providers for all content entity types Active or I wonder if that issue is close enough, we could rely on that issue for the test coverage and just go ahead here (once it's demonstrated that it fixes the problems over there).
- 🇩🇪Germany mrshowerman Munich
Created MR based on #21. Leaving as NW for the decision about test coverage.
- 🇩🇪Germany mxh Offenburg
I'm not sure I understand #26.
My comment #26 is too long ago to provide more context at this time. Guess I made that advise up to minimize the potential compatibility breaks, since it seems both methods are detached from each other on runtime, which is probalby not reproducable by static code checks but will pop up once recognized on runtime.