You are here

public function MessageSource::fields in Message 8

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

src/Plugin/migrate/source/MessageSource.php, line 46
Contains \Drupal\message\Plugin\migrate\source.

Class

MessageSource
Drupal 7 message source from database.

Namespace

Drupal\message\Plugin\migrate\source

Code

public function fields() {
  return [
    'mid' => $this
      ->t('Primary key: unique message ID.'),
    'type' => $this
      ->t('Message type.'),
    'arguments' => $this
      ->t('Message replace arguments.'),
    'uid' => $this
      ->t('Message uid of author.'),
    'timestamp' => $this
      ->t('Message create time.'),
    'language' => $this
      ->t('Message language.'),
  ];
}