You are here

public function ConfigurableTrait::__construct in Backup and Migrate 8.4

Parameters

ConfigInterface|array $init: The initial values for the configurable item

1 call to ConfigurableTrait::__construct()
DrupalSiteArchiveSource::__construct in src/Source/DrupalSiteArchiveSource.php
2 methods override ConfigurableTrait::__construct()
DrupalSiteArchiveSource::__construct in src/Source/DrupalSiteArchiveSource.php
PluginManager::__construct in lib/backup_migrate_core/src/Plugin/PluginManager.php

File

lib/backup_migrate_core/src/Config/ConfigurableTrait.php, line 40

Class

ConfigurableTrait
Class ConfigurableTrait.

Namespace

BackupMigrate\Core\Config

Code

public function __construct($init = []) {
  if (is_array($init)) {
    $init = new Config($init);
  }
  $this->init = $init;

  // Set the config to a blank object to populate all values with the initial
  // and default values.
  $this
    ->setConfig(new Config());
}