
| Current Path : /var/www/html/rocksensor1/web/core/modules/update/src/Plugin/migrate/source/ |
Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 |
| Current File : /var/www/html/rocksensor1/web/core/modules/update/src/Plugin/migrate/source/UpdateSettings.php |
<?php
namespace Drupal\update\Plugin\migrate\source;
use Drupal\migrate_drupal\Plugin\migrate\source\Variable;
/**
* Drupal 6/7 Update settings source from database.
*
* For available configuration keys, refer to the parent classes.
*
* @see \Drupal\migrate_drupal\Plugin\migrate\source\Variable
* @see \Drupal\migrate\Plugin\migrate\source\SqlBase
* @see \Drupal\migrate\Plugin\migrate\source\SourcePluginBase
*
* @MigrateSource(
* id = "update_settings",
* source_module = "update"
* )
*/
class UpdateSettings extends Variable {
/**
* {@inheritdoc}
*/
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;
}
}