function Color::fields

Same name in this branch
  1. 8.9.x core/modules/color/src/Plugin/migrate/destination/Color.php \Drupal\color\Plugin\migrate\destination\Color::fields()
Same name and namespace in other branches
  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()

Overrides VariableMultiRow::fields

File

core/modules/color/src/Plugin/migrate/source/d7/Color.php, line 98

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

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