function Menu::fields

Same name in other branches
  1. 9 core/modules/system/src/Plugin/migrate/source/Menu.php \Drupal\system\Plugin\migrate\source\Menu::fields()
  2. 10 core/modules/system/src/Plugin/migrate/source/Menu.php \Drupal\system\Plugin\migrate\source\Menu::fields()
  3. 11.x core/modules/system/src/Plugin/migrate/source/Menu.php \Drupal\system\Plugin\migrate\source\Menu::fields()

Overrides MigrateSourceInterface::fields

File

core/modules/system/src/Plugin/migrate/source/Menu.php, line 27

Class

Menu
Menu source from database.

Namespace

Drupal\system\Plugin\migrate\source

Code

public function fields() {
    return [
        'menu_name' => $this->t('The menu name. Primary key.'),
        'title' => $this->t('The human-readable name of the menu.'),
        'description' => $this->t('A description of the menu'),
    ];
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.