class UpdateSettings

Same name and namespace in other branches
  1. 11.x core/modules/update/src/Plugin/migrate/source/UpdateSettings.php \Drupal\update\Plugin\migrate\source\UpdateSettings
  2. 10 core/modules/update/src/Plugin/migrate/source/UpdateSettings.php \Drupal\update\Plugin\migrate\source\UpdateSettings

Drupal 6/7 Update settings source from database.

For available configuration keys, refer to the parent classes.

Plugin annotation


@MigrateSource(
  id = "update_settings",
  source_module = "update"
)

Hierarchy

Expanded class hierarchy of UpdateSettings

See also

\Drupal\migrate_drupal\Plugin\migrate\source\Variable

\Drupal\migrate\Plugin\migrate\source\SqlBase

\Drupal\migrate\Plugin\migrate\source\SourcePluginBase

File

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

Namespace

Drupal\update\Plugin\migrate\source
View source
class UpdateSettings extends Variable {
  
  /**
   * {@inheritdoc}
   */
  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.