Mercurial > hg > isophonics-drupal-site
comparison core/modules/migrate/src/Audit/AuditorInterface.php @ 14:1fec387a4317
Update Drupal core to 8.5.2 via Composer
author | Chris Cannam |
---|---|
date | Mon, 23 Apr 2018 09:46:53 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
13:5fb285c0d0e3 | 14:1fec387a4317 |
---|---|
1 <?php | |
2 | |
3 namespace Drupal\migrate\Audit; | |
4 | |
5 use Drupal\migrate\Plugin\MigrationInterface; | |
6 | |
7 /** | |
8 * Defines an interface for migration auditors. | |
9 * | |
10 * A migration auditor is a class which can examine a migration to determine if | |
11 * it will cause conflicts with data already existing in the destination system. | |
12 * What kind of auditing it does, and how it does it, is up to the implementing | |
13 * class. | |
14 */ | |
15 interface AuditorInterface { | |
16 | |
17 /** | |
18 * Audits a migration. | |
19 * | |
20 * @param \Drupal\migrate\Plugin\MigrationInterface $migration | |
21 * The migration to audit. | |
22 * | |
23 * @throws \Drupal\migrate\Audit\AuditException | |
24 * If the audit fails. | |
25 * | |
26 * @return \Drupal\migrate\Audit\AuditResult | |
27 * The result of the audit. | |
28 */ | |
29 public function audit(MigrationInterface $migration); | |
30 | |
31 /** | |
32 * Audits a set of migrations. | |
33 * | |
34 * @param \Drupal\migrate\Plugin\MigrationInterface[] $migrations | |
35 * The migrations to audit. | |
36 * | |
37 * @return \Drupal\migrate\Audit\AuditResult[] | |
38 * The audit results, keyed by migration ID. | |
39 */ | |
40 public function auditMultiple(array $migrations); | |
41 | |
42 } |