TranslationPublicationReaderInterface
Narrows a caller's own set of content items to the content/language pairs published in a period, by the same rule as the "publishedSince" parameter of the subtree coverage report.
Methods¶
findPublishedSince()
¶
A pair is published since the date when its source or its translation was published at or after it.
|
|
|
When the source publish date is unknown (content last published before the Data Intelligence Layer was deployed), it is enough that any translation of the content item was published at or after it. Only published, visible content the current user may read takes part, as in the reports, and the main language of a content item is never a target.
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $contentIds | array<int, int> | - | - |
| $languageCodes | array<int, string> | - |
target languages, each matched on its own; duplicates are ignored, and a disabled or unknown code maps to an empty list, as it has no row in the report, without affecting the other codes |
| $publishedSince | DateTimeImmutable | - | - |
Return values
array<string, array<int, int>>
content ids per requested language code, in ascending order