You are here

public function Agreement::fields in Agreement 3.0.x

Same name in this branch
  1. 3.0.x src/Plugin/migrate/source/Agreement.php \Drupal\agreement\Plugin\migrate\source\Agreement::fields()
  2. 3.0.x src/Plugin/migrate/destination/Agreement.php \Drupal\agreement\Plugin\migrate\destination\Agreement::fields()
Same name and namespace in other branches
  1. 8.2 src/Plugin/migrate/destination/Agreement.php \Drupal\agreement\Plugin\migrate\destination\Agreement::fields()

Returns an array of destination fields.

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

Return value

array

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

Overrides MigrateDestinationInterface::fields

1 call to Agreement::fields()
Agreement::import in src/Plugin/migrate/destination/Agreement.php
Import the row.

File

src/Plugin/migrate/destination/Agreement.php, line 62

Class

Agreement
Agreement migrate destination plugin.

Namespace

Drupal\agreement\Plugin\migrate\destination

Code

public function fields(MigrationInterface $migration = NULL) {
  return [
    'id' => $this
      ->t('Unique Identifier'),
    'type' => $this
      ->t('Agreement type name'),
    'uid' => $this
      ->t('User Identifier'),
    'sid' => $this
      ->t('Session Identifier'),
    'agreed' => $this
      ->t('Agreed?'),
    'agreed_date' => $this
      ->t('Agreement timestamp'),
  ];
}