You are here

public function ContactCategory::fields in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/contact/src/Plugin/migrate/source/ContactCategory.php \Drupal\contact\Plugin\migrate\source\ContactCategory::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/contact/src/Plugin/migrate/source/ContactCategory.php, line 47

Class

ContactCategory
Contact category source from database.

Namespace

Drupal\contact\Plugin\migrate\source

Code

public function fields() {
  return [
    'cid' => $this
      ->t('Primary Key: Unique category ID.'),
    'category' => $this
      ->t('Category name.'),
    'recipients' => $this
      ->t('Comma-separated list of recipient email addresses.'),
    'reply' => $this
      ->t('Text of the auto-reply message.'),
    'weight' => $this
      ->t("The category's weight."),
    'selected' => $this
      ->t('Flag to indicate whether or not category is selected by default. (1 = Yes, 0 = No)'),
  ];
}