You are here

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

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

Class

GdprSqlDump
Class GdprSqlDump.

Namespace

Drupal\gdpr_dump\Service

Code

protected function buildTablesToSkip() {

  // Get table expanded selection.
  $sql = $this
    ->getInstance();
  $table_selection = $sql
    ->get_expanded_table_selection();
  $tablesToSkip = \array_merge($table_selection['skip'], $table_selection['structure']);
  $tablesToSkip = \array_flip($tablesToSkip);
  $tablesToSkip = $tablesToSkip + $this->tablesToSkip;
  $this->tablesToSkip = $tablesToSkip;
}