Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. UpdateSettings.php

function 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']) || str_contains($values['update_fetch_url'], 'http://updates.drupal.org/release-history')) {
        $values['update_fetch_url'] = 'https://updates.drupal.org/release-history';
    }
    return $values;
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal