You are here

public function Color::fields in Drupal 9

Same name in this branch
  1. 9 core/modules/color/src/Plugin/migrate/destination/Color.php \Drupal\color\Plugin\migrate\destination\Color::fields()
  2. 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
  1. 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\d7

Code

public function fields() {
  return [
    'name' => $this
      ->t('A color variable for a theme.'),
    'value' => $this
      ->t('The value of a color variable.'),
  ];
}