You are here

protected function GdprSqlDump::buildTablesToSkip in General Data Protection Regulation 8.2

Same name and namespace in other branches
  1. 8 modules/gdpr_dump/src/Service/GdprSqlDump.php \Drupal\gdpr_dump\Service\GdprSqlDump::buildTablesToSkip()
  2. 3.0.x 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 321

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;
}