You are here

public function Extension::fields in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/system/src/Plugin/migrate/source/Extension.php \Drupal\system\Plugin\migrate\source\Extension::fields()
  2. 9 core/modules/system/src/Plugin/migrate/source/Extension.php \Drupal\system\Plugin\migrate\source\Extension::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

core/modules/system/src/Plugin/migrate/source/Extension.php, line 55

Class

Extension
Drupal 6/7 system data for a legacy extension source from database.

Namespace

Drupal\system\Plugin\migrate\source

Code

public function fields() {
  $fields = [
    'filename' => $this
      ->t('Filename'),
    'name' => $this
      ->t('Name'),
    'type' => $this
      ->t('Type'),
    'owner' => $this
      ->t('Owner'),
    'status' => $this
      ->t('Status'),
    'throttle' => $this
      ->t('Throttle'),
    'bootstrap' => $this
      ->t('Bootstrap'),
    'schema_version' => $this
      ->t('Schema version'),
    'weight' => $this
      ->t('Weight'),
    'info' => $this
      ->t('Information array'),
  ];
  return $fields;
}