function UserUpdate7002::__construct

Same name and namespace in other branches
  1. 9 core/modules/user/src/Plugin/migrate/process/d6/UserUpdate7002.php \Drupal\user\Plugin\migrate\process\d6\UserUpdate7002::__construct()
  2. 8.9.x core/modules/user/src/Plugin/migrate/process/d6/UserUpdate7002.php \Drupal\user\Plugin\migrate\process\d6\UserUpdate7002::__construct()
  3. 10 core/modules/user/src/Plugin/migrate/process/d6/UserUpdate7002.php \Drupal\user\Plugin\migrate\process\d6\UserUpdate7002::__construct()

File

core/modules/user/src/Plugin/migrate/process/d6/UserUpdate7002.php, line 37

Class

UserUpdate7002
Converts user time zones from time zone offsets to time zone names.

Namespace

Drupal\user\Plugin\migrate\process\d6

Code

public function __construct(array $configuration, $plugin_id, array $plugin_definition, Config $date_config) {
    parent::__construct($configuration, $plugin_id, $plugin_definition);
    $this->dateConfig = $date_config;
    if (!isset(static::$timezones)) {
        static::$timezones = TimeZoneFormHelper::getOptionsList();
    }
}

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