You are here

public function Variable::fields in Drupal 10

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

2 methods override Variable::fields()
SearchPage::fields in core/modules/search/src/Plugin/migrate/source/d6/SearchPage.php
Returns available fields on the source.
SearchPage::fields in core/modules/search/src/Plugin/migrate/source/d7/SearchPage.php
Returns available fields on the source.

File

core/modules/migrate_drupal/src/Plugin/migrate/source/Variable.php, line 153

Class

Variable
Drupal 6/7 variable source from database.

Namespace

Drupal\migrate_drupal\Plugin\migrate\source

Code

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