function ContactCategory::fields

Same name in other branches
  1. 8.9.x core/modules/contact/src/Plugin/migrate/source/ContactCategory.php \Drupal\contact\Plugin\migrate\source\ContactCategory::fields()
  2. 10 core/modules/contact/src/Plugin/migrate/source/ContactCategory.php \Drupal\contact\Plugin\migrate\source\ContactCategory::fields()
  3. 11.x core/modules/contact/src/Plugin/migrate/source/ContactCategory.php \Drupal\contact\Plugin\migrate\source\ContactCategory::fields()

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)'),
    ];
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.