-
Notifications
You must be signed in to change notification settings - Fork 3
Ensure translation is loaded via getTranslation(). #249
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
Conversation
4575149 to
4c60fb7
Compare
|
Assigning to myself for review, testing, and merging. |
|
It makes more sense to me to put the logic in For example, it's called here too: |
|
This would also be an issue with taxonomy terms |
I'm going to do some updates based on my comments
|
I made the change but need to test it |
|
I've created a branch for 2.x ( I still need to test the |
|
I have tested this branch with D10 and the 2.x version on D11 and my testing notes are here: https://www.drupal.org/project/quantcdn/issues/353482 There is one issue but it's unrelated to what is being fixed here so I'm marking this approved and will get it merged into 1.x and 2.x accordingly |
When
$entity->isPublished()is used in Seed.php it is returning the default language published state, rather than the translated revision.By passing in an entity loaded via
getTranslationwe get the true published status of the translated revision.(This behaviour appears to have been introduced in a relatively recent version of Drupal core).