function ProfileField::fields
Same name in other branches
- 9 core/modules/user/src/Plugin/migrate/source/ProfileField.php \Drupal\user\Plugin\migrate\source\ProfileField::fields()
- 8.9.x core/modules/user/src/Plugin/migrate/source/ProfileField.php \Drupal\user\Plugin\migrate\source\ProfileField::fields()
- 11.x core/modules/user/src/Plugin/migrate/source/ProfileField.php \Drupal\user\Plugin\migrate\source\ProfileField::fields()
Overrides MigrateSourceInterface::fields
2 calls to ProfileField::fields()
- ProfileFieldOptionTranslation::fields in core/
modules/ user/ src/ Plugin/ migrate/ source/ d6/ ProfileFieldOptionTranslation.php - Returns available fields on the source.
- ProfileFieldTranslation::fields in core/
modules/ config_translation/ src/ Plugin/ migrate/ source/ d6/ ProfileFieldTranslation.php - Returns available fields on the source.
2 methods override ProfileField::fields()
- ProfileFieldOptionTranslation::fields in core/
modules/ user/ src/ Plugin/ migrate/ source/ d6/ ProfileFieldOptionTranslation.php - Returns available fields on the source.
- ProfileFieldTranslation::fields in core/
modules/ config_translation/ src/ Plugin/ migrate/ source/ d6/ ProfileFieldTranslation.php - Returns available fields on the source.
File
-
core/
modules/ user/ src/ Plugin/ migrate/ source/ ProfileField.php, line 79
Class
- ProfileField
- Drupal 6/7 profile field source from database.
Namespace
Drupal\user\Plugin\migrate\sourceCode
public function fields() {
return [
'fid' => $this->t('Primary Key: Unique profile field ID.'),
'title' => $this->t('Title of the field shown to the end user.'),
'name' => $this->t('Internal name of the field used in the form HTML and URLs.'),
'explanation' => $this->t('Explanation of the field to end users.'),
'category' => $this->t('Profile category that the field will be grouped under.'),
'page' => $this->t("Title of page used for browsing by the field's value"),
'type' => $this->t('Type of form field.'),
'weight' => $this->t('Weight of field in relation to other profile fields.'),
'required' => $this->t('Whether the user is required to enter a value. (0 = no, 1 = yes)'),
'register' => $this->t('Whether the field is visible in the user registration form. (1 = yes, 0 = no)'),
'visibility' => $this->t('The level of visibility for the field. (0 = hidden, 1 = private, 2 = public on profile but not member list pages, 3 = public on profile and list pages)'),
'autocomplete' => $this->t('Whether form auto-completion is enabled. (0 = disabled, 1 = enabled)'),
'options' => $this->t('List of options to be used in a list selection field.'),
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.