Install
Works with Drupal: ^10 || ^11 || ^12Using Composer to manage Drupal site dependencies
Alternative installation files
Download tar.gz
55.07 KB
MD5: cce0b9bd8265f2d646c2eb591caa8a40
SHA-1: 5ee67de4d7a311a5f65e6eef44e59ed1364f32f1
SHA-256: 0664028762ca0f649df8b84bbbe6a78760c79e723e9e831a11cc0dd2b3bc357e
Download zip
75.78 KB
MD5: 1526ca8cf48eb9b3d5804eeea2f0cbb6
SHA-1: 2c120f025bed40d255fa0a2a05d4bd8d3e0615d0
SHA-256: d6ab4850a2e9fd891730914cde8d4c988d3d14380156331e8ef0b0300d770ce6
Release notes
Fixes the language of a referenced entity in the emitted JSON-LD.
Fixed
- A referenced entity was read in its own default language instead of the language the page is being rendered in. On a translated page the markup could therefore contradict what the visitor sees: an FAQPage built from a Paragraphs repeater emitted the questions and answers of the default translation, and a reference mapped to a property emitted its label, its canonical URL or its media file from the wrong translation.
- The referenced entity is now resolved through
entity.repository, which also honours the site's configured language fallback. - Two docblocks had become detached from the functions they document, leaving those functions undocumented.
This affects any site whose reference field is not translatable while the entities it points at are — the usual arrangement for Paragraphs. No configuration changes and no update hooks to run; clear caches after updating.
This release also adds a CHANGELOG.md covering the history since 1.0.0.