You are here

public function ContactCategory::fields in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/contact/src/Plugin/migrate/source/ContactCategory.php \Drupal\contact\Plugin\migrate\source\ContactCategory::fields()
  2. 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 52

Class

ContactCategory
Drupal 6/7 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)'),
  ];
}