You are here

public function VariableTranslation::fields in Drupal 10

Same name in this branch
  1. 10 core/modules/migrate_drupal/src/Plugin/migrate/source/d6/VariableTranslation.php \Drupal\migrate_drupal\Plugin\migrate\source\d6\VariableTranslation::fields()
  2. 10 core/modules/migrate_drupal/src/Plugin/migrate/source/d7/VariableTranslation.php \Drupal\migrate_drupal\Plugin\migrate\source\d7\VariableTranslation::fields()
Same name and namespace in other branches
  1. 8 core/modules/migrate_drupal/src/Plugin/migrate/source/d6/VariableTranslation.php \Drupal\migrate_drupal\Plugin\migrate\source\d6\VariableTranslation::fields()
  2. 9 core/modules/migrate_drupal/src/Plugin/migrate/source/d6/VariableTranslation.php \Drupal\migrate_drupal\Plugin\migrate\source\d6\VariableTranslation::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/migrate_drupal/src/Plugin/migrate/source/d6/VariableTranslation.php, line 99

Class

VariableTranslation
Drupal 6 i18n_variable source from database.

Namespace

Drupal\migrate_drupal\Plugin\migrate\source\d6

Code

public function fields() {
  return array_combine($this->variables, $this->variables);
}