'language',
'plid',
'plural',
]) ->
condition('i18n_mode', 1
);
$query->
leftjoin($this->blockTable, 'b',
('[b].[delta] = [i18n].[objectid]'
));
$query->
innerJoin('locales_target', 'lt', '[lt].[lid] = [i18n].[lid]'
);
// The i18n_string module adds a status column to locale_target. It was
// originally 'status' in a later revision it was named 'i18n_status'.
/** @var \Drupal\Core\Database\Schema $db */
if ($this->
getDatabase()->
schema()->
fieldExists('locales_target', 'status'
)) { $query->
addField('lt', 'status', 'i18n_status'
);
} if ($this->
getDatabase()->
schema()->
fieldExists('locales_target', 'i18n_status'
)) { $query->
addField('lt', 'i18n_status', 'i18n_status'
);
} return $query;
} /**
* {@inheritdoc}
*/