function Shortcut::fields
Returns available fields on the source.
Return value
array Available fields in the source, keys are the field machine names as used in field mappings, values are descriptions.
Overrides MigrateSourceInterface::fields
File
-
core/
modules/ shortcut/ src/ Plugin/ migrate/ source/ d7/ Shortcut.php, line 36
Class
- Shortcut
- Drupal 7 shortcut links source from database.
Namespace
Drupal\shortcut\Plugin\migrate\source\d7Code
public function fields() {
return [
'mlid' => $this->t("The menu.mlid primary key for this menu link (= 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.