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/destination/d7/FieldGroup.php \Drupal\field_group_migrate\Plugin\migrate\destination\d7\FieldGroup::fields()

Returns an array of destination fields.

Derived classes must implement fields(), returning a list of available destination fields.

Parameters

\Drupal\migrate\Plugin\MigrationInterface $migration: Unused, will be removed before Drupal 9.0.x. Defaults to NULL.

Return value

array

  • Keys: machine names of the fields
  • Values: Human-friendly descriptions of the fields.

Overrides MigrateDestinationInterface::fields

File

contrib/field_group_migrate/src/Plugin/migrate/destination/d7/FieldGroup.php, line 73
Contains \Drupal\field_group_migrate\Plugin\migrate\destination\d7\FieldGroup.

Class

FieldGroup
This class imports one field_group of an entity form display.

Namespace

Drupal\field_group_migrate\Plugin\migrate\destination\d7

Code

public function fields(MigrationInterface $migration = NULL) {

  // This is intentionally left empty.
}