You are here

public function Message::fields in Commerce Migrate 3.0.x

Same name and namespace in other branches
  1. 8.2 modules/commerce/src/Plugin/migrate/source/commerce1/Message.php \Drupal\commerce_migrate_commerce\Plugin\migrate\source\commerce1\Message::fields()
  2. 3.1.x modules/commerce/src/Plugin/migrate/source/commerce1/Message.php \Drupal\commerce_migrate_commerce\Plugin\migrate\source\commerce1\Message::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

modules/commerce/src/Plugin/migrate/source/commerce1/Message.php, line 46

Class

Message
Gets the Commerce 1 currency data.

Namespace

Drupal\commerce_migrate_commerce\Plugin\migrate\source\commerce1

Code

public function fields() {
  return [
    'mid' => $this
      ->t('Message ID'),
    'type' => $this
      ->t('Message type'),
    'arguments' => $this
      ->t('Arguments'),
    'uid' => $this
      ->t('UID'),
    'timestamp' => $this
      ->t('Message timestamp'),
    'language' => $this
      ->t('Language'),
    'target_id' => $this
      ->t('Target ID'),
    'name' => $this
      ->t('Message type name'),
    'category' => $this
      ->t('Message category'),
  ];
}