function MenuLinkLocalized::query
Same name in other branches
- 10 core/modules/menu_link_content/src/Plugin/migrate/source/d7/MenuLinkLocalized.php \Drupal\menu_link_content\Plugin\migrate\source\d7\MenuLinkLocalized::query()
- 11.x core/modules/menu_link_content/src/Plugin/migrate/source/d7/MenuLinkLocalized.php \Drupal\menu_link_content\Plugin\migrate\source\d7\MenuLinkLocalized::query()
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;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.