-
Notifications
You must be signed in to change notification settings - Fork 201
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Route Entity data producer with non-existing translation #1322
Comments
PR: #1323 |
If the entity has been requested in a specific translation, that the entity does not have then I agree that the return value should be NULL since we cannot actually resolve the requested set of parameters. |
This looks like a perfect approach and is working perfect. |
…ty for a language the entity is not translated into. This same pattern happens in three plugins, this fixes in all of them.
hi! I think this is a great fix, the same code exists though also in the |
This plugin tries to load entity translation based on the language argument. But in case that translation doesn't exist Drupal's ContentEntityBase class throws exception
Invalid translation language ($langcode) specified.
.I suggest to add check if translation exists before trying to get it.
The text was updated successfully, but these errors were encountered: