- πΊπ¦Ukraine ankondrat4 Lutsk
Hello.
How we can use entityQuery on multilanguage sites for getting nodes/translations by langcode?
For example, I have some code:$query = $this->entityTypeManager->getStorage('node')->getQuery() ->condition('type', $types, 'IN') ->condition('status', 1) ->condition('langcode', $language) ->sort('created', 'DESC') ->pager($ipp);
But it gets only nodes that created on $language and doesn't have any translations OR nodes that has last translation to $language.
I confused) How I can get all nodes that has created on $language or has translation to $language by use entityQuery?