You are here

public function MenuLink::query in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/menu_link_content/src/Plugin/migrate/source/MenuLink.php \Drupal\menu_link_content\Plugin\migrate\source\MenuLink::query()

Return value

\Drupal\Core\Database\Query\SelectInterface

Overrides SqlBase::query

File

core/modules/menu_link_content/src/Plugin/migrate/source/MenuLink.php, line 25
Contains \Drupal\menu_link_content\Plugin\migrate\source\MenuLink.

Class

MenuLink
Drupal menu link source from database.

Namespace

Drupal\menu_link_content\Plugin\migrate\source

Code

public function query() {
  return $this
    ->select('menu_links', 'ml')
    ->fields('ml')
    ->orderby('ml.depth')
    ->orderby('ml.mlid')
    ->condition('module', 'menu')
    ->condition('customized', 1);
}