You are here

public function MenuLinkLocalized::query in Drupal 9

Return value

\Drupal\Core\Database\Query\SelectInterface

Overrides MenuLink::query

File

core/modules/menu_link_content/src/Plugin/migrate/source/d7/MenuLinkLocalized.php, line 21

Class

MenuLinkLocalized
Gets localized menu link translations from source database.

Namespace

Drupal\menu_link_content\Plugin\migrate\source\d7

Code

public function query() {
  $query = parent::query();
  $query
    ->condition('ml.i18n_tsid', '0', '<>');

  // The first row in a translation set is the source.
  $query
    ->orderBy('ml.i18n_tsid');
  return $query;
}