->
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'
);
$query->
orderBy('ml.depth'
);
$query->
orderby('ml.mlid'
);
return $query;
} /**
* {@inheritdoc}
*/
public function fields() { $fields =
[ 'menu_name' =>
$this->
t("The menu name. All links with the same menu name (such as 'navigation') are part of the same menu."
),
'mlid' =>
$this->
t('The menu link ID (mlid) is the integer primary key.'
),
'plid' =>
$this->
t('The parent link ID (plid) is the mlid of the link above in the hierarchy, or zero if the link is at the top level in its menu.'
),