You are here

public function GdprSqlMysql::__construct in General Data Protection Regulation 8

Same name and namespace in other branches
  1. 8.2 modules/gdpr_dump/src/Sql/GdprSqlMysql.php \Drupal\gdpr_dump\Sql\GdprSqlMysql::__construct()
  2. 3.0.x modules/gdpr_dump/src/Sql/GdprSqlMysql.php \Drupal\gdpr_dump\Sql\GdprSqlMysql::__construct()

File

modules/gdpr_dump/src/Sql/GdprSqlMysql.php, line 41

Class

GdprSqlMysql
Class GdprSqlMysql.

Namespace

Drupal\gdpr_dump\Sql

Code

public function __construct($db_spec = NULL) {
  parent::__construct($db_spec);
  $this->gdprDumpConfig = \Drupal::config(SettingsForm::GDPR_DUMP_CONF_KEY);
  $this->tablesToAnonymize = $this->gdprDumpConfig
    ->get('mapping');
  $this->tablesToSkip = \array_keys($this->gdprDumpConfig
    ->get('empty_tables'));
}