function Shortcut::query
Return value
\Drupal\Core\Database\Query\SelectInterface
Overrides SqlBase::query
File
- 
              core/modules/ shortcut/ src/ Plugin/ migrate/ source/ d7/ Shortcut.php, line 27 
Class
- Shortcut
- Drupal 7 shortcut links source from database.
Namespace
Drupal\shortcut\Plugin\migrate\source\d7Code
public function query() {
  return $this->select('menu_links', 'ml')
    ->fields('ml', [
    'mlid',
    'menu_name',
    'link_path',
    'link_title',
    'weight',
  ])
    ->condition('hidden', '0')
    ->condition('menu_name', 'shortcut-set-%', 'LIKE')
    ->orderBy('ml.mlid');
}Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.
