public function Color::fields in Drupal 9
Same name in this branch
- 9 core/modules/color/src/Plugin/migrate/destination/Color.php \Drupal\color\Plugin\migrate\destination\Color::fields()
- 9 core/modules/color/src/Plugin/migrate/source/d7/Color.php \Drupal\color\Plugin\migrate\source\d7\Color::fields()
Same name and namespace in other branches
- 8 core/modules/color/src/Plugin/migrate/source/d7/Color.php \Drupal\color\Plugin\migrate\source\d7\Color::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 VariableMultiRow::fields
File
- core/
modules/ color/ src/ Plugin/ migrate/ source/ d7/ Color.php, line 96
Class
- Color
- Drupal 7 color source from database.
Namespace
Drupal\color\Plugin\migrate\source\d7Code
public function fields() {
return [
'name' => $this
->t('A color variable for a theme.'),
'value' => $this
->t('The value of a color variable.'),
];
}