public function MenuLinkLocalized::query in Drupal 10
Same name and namespace in other branches
- 9 core/modules/menu_link_content/src/Plugin/migrate/source/d7/MenuLinkLocalized.php \Drupal\menu_link_content\Plugin\migrate\source\d7\MenuLinkLocalized::query()
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
- Drupal 7 localized menu link translations source from database.
Namespace
Drupal\menu_link_content\Plugin\migrate\source\d7Code
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;
}