3 namespace Drupal\system\Plugin\migrate\source;
5 use Drupal\migrate_drupal\Plugin\migrate\source\DrupalSqlBase;
8 * Menu source from database.
12 * source_module = "menu"
15 class Menu extends DrupalSqlBase {
20 public function query() {
21 return $this->select('menu_custom', 'm')->fields('m');
27 public function fields() {
29 'menu_name' => $this->t('The menu name. Primary key.'),
30 'title' => $this->t('The human-readable name of the menu.'),
31 'description' => $this->t('A description of the menu'),
38 public function getIds() {
39 $ids['menu_name']['type'] = 'string';