protected function Variable::values in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/migrate_drupal/src/Plugin/migrate/source/Variable.php \Drupal\migrate_drupal\Plugin\migrate\source\Variable::values()
Return the values of the variables specified in the plugin configuration.
Return value
array An associative array where the keys are the variables specified in the plugin configuration and the values are the values found in the source. Only those values are returned that are actually in the database.
2 calls to Variable::values()
- ContactSettings::initializeIterator in core/
modules/ contact/ src/ Plugin/ migrate/ source/ ContactSettings.php - Implementation of MigrateSource::performRewind().
- Variable::initializeIterator in core/
modules/ migrate_drupal/ src/ Plugin/ migrate/ source/ Variable.php - Implementation of MigrateSource::performRewind().
File
- core/
modules/ migrate_drupal/ src/ Plugin/ migrate/ source/ Variable.php, line 56 - Contains \Drupal\migrate_drupal\Plugin\migrate\source\Variable.
Class
- Variable
- Drupal variable source from database.
Namespace
Drupal\migrate_drupal\Plugin\migrate\sourceCode
protected function values() {
// Create an ID field so we can record migration in the map table.
// Arbitrarily, use the first variable name.
$values['id'] = reset($this->variables);
return $values + array_map('unserialize', $this
->prepareQuery()
->execute()
->fetchAllKeyed());
}