function UpdateSettings::values
Same name in other branches
- 9 core/modules/update/src/Plugin/migrate/source/UpdateSettings.php \Drupal\update\Plugin\migrate\source\UpdateSettings::values()
- 10 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\sourceCode
protected function values() {
$values = parent::values();
if (empty($values['update_fetch_url']) || str_contains($values['update_fetch_url'], 'http://updates.drupal.org/release-history')) {
$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.