- Issue was unassigned.
- Status changed to Closed: outdated
9 months ago 12:48pm 2 July 2024 - π΅πΉPortugal joao.ramos.costa
Hi @quietone,
Looking back this doesn't make sense :).closing,
Thanks for reviewing
API page: https://api.drupal.org/api/drupal/core%21lib%21Drupal%21Core%21Database%...
In some projects i found the need to perform the classic node search based on the current language that user is visiting the website, so i guess it would be nice to include some option to filter by language on the search configuration.
This is a simple contribution for someone who is in need to the same that i did some days ago:
function hook_query_search_node_search_alter(&$query) {
$language = \Drupal::languageManager()->getCurrentLanguage()->getId();
$query->condition('i.langcode', array($language, 'und', 'zxx'), 'IN');
}
Closed: outdated
11.0 π₯
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
Hi @quietone,
Looking back this doesn't make sense :).
closing,
Thanks for reviewing