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 Menu::fields

File

core/modules/migrate_drupal_ui/tests/modules/migrate_drupal_message_test/src/Plugin/migrate/source/MenuTest.php, line 20

Class

MenuTest
Source plugin with a source id removed from the array returned by fields().

Namespace

Drupal\migrate_drupal_message_test\Plugin\migrate\source

Code

public function fields() {
  $fields = parent::fields();
  unset($fields['menu_name']);
  return $fields;
}