Get all content in all language using query I tired to get the content from db using query with some conditions and I need to fetch content in all languages. I have tried two methods, only english language content were fetched, but it doesn't work for all other languages...

Method 1:

    $langcd = \Drupal::languageManager()-&gt;getCurrentLanguage()-&gt;getId();
    $query = \Drupal::entityQuery('node')
      -&gt;condition('status', 1)
      -&gt;condition('type', 'page');
      -&gt;condition('langcode', $langcd);
    $nids = $query-&gt;execute();


Method 2:

    $db = \Drupal::database();
    $query = $db-&gt;select('node', 'n');
    $query-&gt;fields('n');
    $query-&gt;condition('type', "page", "=");
    $query-&gt;condition('langcode', $langcd);
    $result = $query-&gt;execute()-&gt;fetchCol();


Every time I am getting only the English version of that content, but other language for that particular content was available in db. Please somebody help me to get the content in all other languages.
Following code should work:

$langcd = \Drupal::languageManager()-&gt;getLanguages();
$langcd = array_keys($langcd);
$query = \Drupal::entityQuery('node')
        -&gt;condition('status', 1)
        -&gt;condition('type', 'page');
$query-&gt;condition('langcode', $langcd, 'IN');
$nids = $query-&gt;execute();


Get list of active languages first, then change condition for langcode to IN.