function Shortcut::fields

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

Overrides MigrateSourceInterface::fields

File

core/modules/shortcut/src/Plugin/migrate/source/d7/Shortcut.php, line 31

Class

Shortcut
Drupal 7 shortcut links source from database.

Namespace

Drupal\shortcut\Plugin\migrate\source\d7

Code

public function fields() {
    return [
        'mlid' => $this->t("The menu.mlid primary key for this menu item (= shortcut link)."),
        'menu_name' => $this->t("The menu name (= set name) for this shortcut link."),
        'link_path' => $this->t("The link for this shortcut."),
        'link_title' => $this->t("The title for this shortcut."),
        'weight' => $this->t("The weight for this shortcut"),
    ];
}

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