You are here

public function GdprSqlDump::dump 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::dump()
  2. 8 modules/gdpr_dump/src/Service/GdprSqlDump.php \Drupal\gdpr_dump\Service\GdprSqlDump::dump()

Dump command.

Parameters

array $options: Options for the command.

Return value

bool The result of the dump.

Throws

\Exception

File

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

Class

GdprSqlDump
Class GdprSqlDump.

Namespace

Drupal\gdpr_dump\Service

Code

public function dump(array $options) {
  $this->sql = $this
    ->getInstance($options);
  $this
    ->prepare();
  $result = $this->sql
    ->dump();
  $this
    ->cleanup();
  return $result;
}