function UpdateSettings::values

Same name in other branches
  1. 10 core/modules/update/src/Plugin/migrate/source/UpdateSettings.php \Drupal\update\Plugin\migrate\source\UpdateSettings::values()
  2. 11.x core/modules/update/src/Plugin/migrate/source/UpdateSettings.php \Drupal\update\Plugin\migrate\source\UpdateSettings::values()

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;
}

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