You are here

protected function GdprSqlDump::prepare 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::prepare()
  2. 3.0.x modules/gdpr_dump/src/Service/GdprSqlDump.php \Drupal\gdpr_dump\Service\GdprSqlDump::prepare()

Prepare the database for the dump.

Throws

\InvalidArgumentException

\Drupal\Core\Database\IntegrityConstraintViolationException

\Drupal\Core\Database\DatabaseExceptionWrapper

\Drupal\Core\Database\TransactionNoActiveException

\Drupal\Core\Database\TransactionCommitFailedException

\Exception

2 calls to GdprSqlDump::prepare()
GdprSanitize::sanitize in modules/gdpr_dump/src/Service/GdprSanitize.php
Go through the data and sanitize it.
GdprSqlDump::dump in modules/gdpr_dump/src/Service/GdprSqlDump.php
Dump command.

File

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

Class

GdprSqlDump
Class GdprSqlDump.

Namespace

Drupal\gdpr_dump\Service

Code

protected function prepare() {
  $this
    ->cleanup();
  $this
    ->buildTablesToSkip();
  $this
    ->createTableClones();
  $this
    ->sanitizeData();
}