You are here

protected function GdprSqlDump::buildTablesToSkip in General Data Protection Regulation 3.0.x

Same name and namespace in other branches
  1. 8.2 modules/gdpr_dump/src/Service/GdprSqlDump.php \Drupal\gdpr_dump\Service\GdprSqlDump::buildTablesToSkip()
  2. 8 modules/gdpr_dump/src/Service/GdprSqlDump.php \Drupal\gdpr_dump\Service\GdprSqlDump::buildTablesToSkip()

Builds tablesToSkip array.

1 call to GdprSqlDump::buildTablesToSkip()
GdprSqlDump::prepare in modules/gdpr_dump/src/Service/GdprSqlDump.php
Prepare the database for the dump.

File

modules/gdpr_dump/src/Service/GdprSqlDump.php, line 320

Class

GdprSqlDump
Class GdprSqlDump.

Namespace

Drupal\gdpr_dump\Service

Code

protected function buildTablesToSkip() {

  // Get table expanded selection.
  $tableSelection = $this->sql
    ->getExpandedTableSelection($this->sql
    ->getOptions(), $this->sql
    ->listTables());
  $tablesToSkip = array_merge($tableSelection['skip'], $tableSelection['structure']);
  $tablesToSkip = array_flip($tablesToSkip);
  $tablesToSkip += $this->tablesToSkip;
  $this->tablesToSkip = $tablesToSkip;
}