- First commit to issue fork.
- Merge request !11297Issue #3175985: Return translation from context in BlockContentBlock β (Open) created by acbramley
- π¦πΊAustralia acbramley
Manually played around with this a bit and confirmed it's still an issue. Adding the getTranslationFromContext wrapper on getEntity does work and doesn't look to break anything! We just need tests now :)
- Status changed to Needs review
12 days ago 4:11am 26 June 2025 - πΊπΈUnited States smustgrave
Test-only job ran here https://git.drupalcode.org/issue/drupal-3175985/-/jobs/5698563 which outputted
1) Drupal\Tests\block_content\Functional\BlockContentTranslationTest::testBlockContentTranslationAccess Behat\Mink\Exception\ResponseTextException: The text "Spanish block" was not found anywhere in the text of the current page. /builds/issue/drupal-3175985/vendor/behat/mink/src/WebAssert.php:907 /builds/issue/drupal-3175985/vendor/behat/mink/src/WebAssert.php:293 /builds/issue/drupal-3175985/core/tests/Drupal/Tests/WebAssert.php:981 /builds/issue/drupal-3175985/core/modules/block_content/tests/src/Functional/BlockContentTranslationTest.php:67 FAILURES!
Looking at the change
return $this->entityRepository->getTranslationFromContext($this->blockContent);
seems like a good update!