You are here

public function UserUpdate7002::__construct in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/user/src/Plugin/migrate/process/d6/UserUpdate7002.php \Drupal\user\Plugin\migrate\process\d6\UserUpdate7002::__construct()

Constructs a Drupal\Component\Plugin\PluginBase object.

Parameters

array $configuration: A configuration array containing information about the plugin instance.

string $plugin_id: The plugin_id for the plugin instance.

mixed $plugin_definition: The plugin implementation definition.

Overrides PluginBase::__construct

File

core/modules/user/src/Plugin/migrate/process/d6/UserUpdate7002.php, line 43
Contains \Drupal\user\Plugin\migrate\process\d6\UserUpdate7002.

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 = system_time_zones();
  }
}