/**
* {@inheritdoc}
*/
public function query() { $query =
$this->
select('menu_links', 'ml'
) ->
fields('ml'
) // Shortcut set links are migrated by the d7_shortcut migration.
// Shortcuts are not used in Drupal 6.
// @see Drupal\shortcut\Plugin\migrate\source\d7\Shortcut::query()
->
condition('ml.menu_name', 'shortcut-set-%', 'NOT LIKE'
);
$and =
$query->
andConditionGroup() ->
condition('ml.module', 'menu'
) ->
condition('ml.router_path',
['admin/build/menu-customize/%', 'admin/structure/menu/manage/%'
], 'NOT IN'
);
$condition =
$query->
orConditionGroup() ->
condition('ml.customized', 1
) ->
condition($and);
$query->
condition($condition);
if (isset($this->configuration
['menu_name'
])) { $query->
condition('ml.menu_name',
(array) $this->configuration
['menu_name'
], 'IN'
);
} $query->
leftJoin('menu_links', 'pl', '[ml].[plid] = [pl].[mlid]'
);
$query->
addField('pl', 'link_path', 'parent_link_path'
);