Skip to content

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

Open
wants to merge 1 commit into
base: 8.x-1.x
Choose a base branch
from

Conversation

stooit
Copy link
Contributor

@stooit stooit commented May 6, 2025

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 getTranslation we get the true published status of the translated revision.

(This behaviour appears to have been introduced in a relatively recent version of Drupal core).

@stooit stooit force-pushed the feat/lang-published-status branch from 4575149 to 4c60fb7 Compare May 6, 2025 22:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants