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/d7/FieldGroup.php \Drupal\field_group_migrate\Plugin\migrate\source\d7\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/d7/FieldGroup.php, line 90
Contains \Drupal\field_group_migrate\Plugin\migrate\source\d7\FieldGroup.

Class

FieldGroup
Drupal 7 field_group source.

Namespace

Drupal\field_group_migrate\Plugin\migrate\source\d7

Code

public function fields() {
  $fields = array(
    'id' => $this
      ->t('ID'),
    'identifier' => $this
      ->t('Identifier'),
    'group_name' => $this
      ->t('Group name'),
    'entity_type' => $this
      ->t('Entity type'),
    'bundle' => $this
      ->t('Bundle'),
    'mode' => $this
      ->t('View mode'),
    'parent_name' => $this
      ->t('Parent name'),
    'data' => $this
      ->t('Data'),
  );
  return $fields;
}