You are here

public function FieldGroup::fields in Field Group 8

Same name in this branch
  1. 8 contrib/field_group_migrate/src/Plugin/migrate/source/d6/FieldGroup.php \Drupal\field_group_migrate\Plugin\migrate\source\d6\FieldGroup::fields()
  2. 8 contrib/field_group_migrate/src/Plugin/migrate/source/d7/FieldGroup.php \Drupal\field_group_migrate\Plugin\migrate\source\d7\FieldGroup::fields()
  3. 8 contrib/field_group_migrate/src/Plugin/migrate/destination/d7/FieldGroup.php \Drupal\field_group_migrate\Plugin\migrate\destination\d7\FieldGroup::fields()
Same name and namespace in other branches
  1. 8.3 contrib/field_group_migrate/src/Plugin/migrate/source/d6/FieldGroup.php \Drupal\field_group_migrate\Plugin\migrate\source\d6\FieldGroup::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

contrib/field_group_migrate/src/Plugin/migrate/source/d6/FieldGroup.php, line 176

Class

FieldGroup
Drupal 6 field_group source.

Namespace

Drupal\field_group_migrate\Plugin\migrate\source\d6

Code

public function fields() {
  $fields = [
    'group_type',
    'type_name',
    'group_name',
    'label',
    'settings',
    'weight',
  ];
  return array_combine($fields, $fields);
}