You are here

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

Same name and namespace in other branches
  1. 8 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 50

Class

GdprSqlMysql
Class GdprSqlMysql.

Namespace

Drupal\gdpr_dump\Sql

Code

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