- last update
10 months ago Patch Failed to Apply
Upcasting of route named Views parameters does not work. For instance, I'm expecting that a %user
Views argument, which is set to validate as a valid user entity, will be upcasted to a user
entity object. Running the following code should pass:
$account = \Drupal::routeMatch()->getParameter('user');
assert($account instanceof \Drupal\user\UserInterface);
Instead, the route matcher is still returning the raw argument as user ID.
Allow named parameters upcating to entities. Use the argument validation plugin to determine if a named parameter can be upcasted to its entity object.
None.
None.
Named Views arguments, validating as entities, are now upcasted as entity objects.
None.
If a named Views argument is validated as an entity then it will upcast as entity object.
Needs work
11.0 π₯
Last updated
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.