public function ContactCategory::fields in Zircon Profile 8
Same name and namespace in other branches
- 8.0 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 - Contains \Drupal\contact\Plugin\migrate\source\ContactCategory.
Class
- ContactCategory
- Contact category source from database.
Namespace
Drupal\contact\Plugin\migrate\sourceCode
public function fields() {
return array(
'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)'),
);
}