You are here

protected function EntityMenuLinkController::buildQuery in Entity menu links 7

Overrides DrupalDefaultEntityController::buildQuery().

Overrides EntityAPIController::buildQuery

File

./entity_menu_links.controller.inc, line 10

Class

EntityMenuLinkController
Controller class for menu links.

Code

protected function buildQuery($ids, $conditions = array(), $revision_id = FALSE) {
  $query = parent::buildQuery($ids, $conditions, $revision_id);

  // Specify additional fields from the menu tables.
  $query
    ->leftJoin('menu_router', 'm', 'base.router_path = m.path');
  $query
    ->fields('m', array_diff(drupal_schema_fields_sql('menu_router'), array(
    'weight',
  )));
  return $query;
}