Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 295852

User context missing when using toUrl in some circumstances

$
0
0

This error is likely be repro'd out of tests only, but reporting as I see it.

Using toUrl within a Kernel test results in the following uncaught exception.

Drupal\Component\Plugin\Exception\ContextException: The 'entity:user' context is required and not present.

This is causing the tests for Linky project to fail. This may be caused by new code introduced this year in #2942907: Entity system does not provide an API for retrieving an entity variant that is safe for editing, specifically the changes introduced to \Drupal\Core\ParamConverter\EntityConverter::convert


Viewing all articles
Browse latest Browse all 295852

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>