You are here

public function Shortcut::fields in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/shortcut/src/Plugin/migrate/source/d7/Shortcut.php \Drupal\shortcut\Plugin\migrate\source\d7\Shortcut::fields()
  2. 9 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 36

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 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"),
  ];
}