public function Shortcut::fields in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/shortcut/src/Plugin/migrate/source/d7/Shortcut.php \Drupal\shortcut\Plugin\migrate\source\d7\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 34 - Contains \Drupal\shortcut\Plugin\migrate\source\d7\Shortcut.
Class
- Shortcut
- Drupal 7 shortcut links source from database.
Namespace
Drupal\shortcut\Plugin\migrate\source\d7Code
public function fields() {
return array(
'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"),
);
}