You are here

public function MessageTemplateSource::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/MessageTemplateSource.php, line 58
Contains \Drupal\message\Plugin\migrate\source.

Class

MessageTemplateSource
Drupal 7 message types source from database.

Namespace

Drupal\message\Plugin\migrate\source

Code

public function fields() {
  return [
    'id' => $this
      ->t('Primary key: unique message type ID.'),
    'name' => $this
      ->t('Unique message type name.'),
    'category' => $this
      ->t('Message type category.'),
    'description' => $this
      ->t('Message type description.'),
    'argument_keys' => $this
      ->t('Message type argumented keys.'),
    'language' => $this
      ->t('Message type language.'),
    'status' => $this
      ->t('Message type status.'),
    'module' => $this
      ->t('Message type module.'),
    'arguments' => $this
      ->t('Message type arguments.'),
    'data' => $this
      ->t('Message type data.'),
    'message_text_value' => $this
      ->t('Message text value.'),
    'message_text_format' => $this
      ->t('Message text format.'),
    'delta' => $this
      ->t('Message text number.'),
    'concat_id' => $this
      ->t('Concats the id of the message type and the delta of the message text.'),
  ];
}