You are here

protected function UpdateSettings::values in Drupal 9

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.

Overrides Variable::values

File

core/modules/update/src/Plugin/migrate/source/UpdateSettings.php, line 26

Class

UpdateSettings
Drupal 6/7 Update settings source from database.

Namespace

Drupal\update\Plugin\migrate\source

Code

protected function values() {
  $values = parent::values();
  if (empty($values['update_fetch_url']) || strpos($values['update_fetch_url'], 'http://updates.drupal.org/release-history') !== FALSE) {
    $values['update_fetch_url'] = 'https://updates.drupal.org/release-history';
  }
  return $values;
}