function Variable::fields

Same name in other branches
  1. 9 core/modules/migrate_drupal/src/Plugin/migrate/source/Variable.php \Drupal\migrate_drupal\Plugin\migrate\source\Variable::fields()
  2. 10 core/modules/migrate_drupal/src/Plugin/migrate/source/Variable.php \Drupal\migrate_drupal\Plugin\migrate\source\Variable::fields()
  3. 11.x core/modules/migrate_drupal/src/Plugin/migrate/source/Variable.php \Drupal\migrate_drupal\Plugin\migrate\source\Variable::fields()

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 70

Class

Variable
Drupal variable source from database.

Namespace

Drupal\migrate_drupal\Plugin\migrate\source

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.