- extraneous, because the $entity parameter that's passed in should already be the desired translation
- confusing, because if the passed in $langcode is different from $entity->language()->id, it's not clear what the expected behavior should be
This issue is critical, because it is required by, which is required by , which is required by and other places where core or contrib needs to move a route to the new routing system but requires a node_access() check.
Remove the parameter. Require calling code to pass in the desired translation, rather than the original entity (or a random translation of it) and a separate $langcode.
$langcode parameter removed from:
This therefore affects all implementations of the interfaces and hooks.
|FAILED: [[SimpleTest]]: [MySQL] Unable to apply patch entity_access-remove-langcode-param-2072945-29.patch. Unable to apply patch. See the log in the details link for more information. |
[ View ]