Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
drupal
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
drupal
Commits
c6ec2add
Commit
c6ec2add
authored
10 years ago
by
Jennifer Hodgdon
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#2316413
by benjy, chx: Clean up MigrationInterface docs
parent
c8bd0b4f
Branches
Branches containing commit
Tags
Tags containing commit
2 merge requests
!7452
Issue #1797438. HTML5 validation is preventing form submit and not fully...
,
!789
Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
core/modules/migrate/src/Entity/MigrationInterface.php
+68
-15
68 additions, 15 deletions
core/modules/migrate/src/Entity/MigrationInterface.php
with
68 additions
and
15 deletions
core/modules/migrate/src/Entity/MigrationInterface.php
+
68
−
15
View file @
c6ec2add
...
...
@@ -14,46 +14,96 @@
*/
interface
MigrationInterface
extends
ConfigEntityInterface
{
/**
* A constant used for systemOfRecord.
*/
const
SOURCE
=
'source'
;
/**
* A constant used for systemOfRecord.
*/
const
DESTINATION
=
'destination'
;
/**
* Codes representing the current status of a migration, and stored in the
* migrate_status table.
* The migration is currently not running.
*/
const
STATUS_IDLE
=
0
;
/**
* The migration is currently importing.
*/
const
STATUS_IMPORTING
=
1
;
/**
* The migration is currently being rolled back.
*/
const
STATUS_ROLLING_BACK
=
2
;
/**
* The migration is being stopped.
*/
const
STATUS_STOPPING
=
3
;
/**
* The migration has been disabled.
*/
const
STATUS_DISABLED
=
4
;
/**
* Message types to be passed to saveMessage() and saved in message tables.
* MESSAGE_INFORMATIONAL represents a condition that did not prevent the
* operation from succeeding - all others represent different severities of
* conditions resulting in a source record not being imported.
* Migration error.
*/
const
MESSAGE_ERROR
=
1
;
/**
* Migration warning.
*/
const
MESSAGE_WARNING
=
2
;
/**
* Migration notice.
*/
const
MESSAGE_NOTICE
=
3
;
/**
* Migration info.
*/
const
MESSAGE_INFORMATIONAL
=
4
;
/**
* Codes representing the result of a rollback or import process.
* All records have been processed.
*/
const
RESULT_COMPLETED
=
1
;
/**
* The process has stopped itself (e.g., the memory limit is approaching).
*/
const
RESULT_INCOMPLETE
=
2
;
/**
* The process was stopped externally (e.g., via drush migrate-stop).
*/
const
RESULT_STOPPED
=
3
;
/**
* The process had a fatal error.
*/
const
RESULT_FAILED
=
4
;
/**
* Dependencies are unfulfilled - skip the process.
*/
const
RESULT_SKIPPED
=
5
;
/**
* This migration is disabled, skipping.
*/
const
RESULT_COMPLETED
=
1
;
// All records have been processed
const
RESULT_INCOMPLETE
=
2
;
// The process has interrupted itself (e.g., the
// memory limit is approaching)
const
RESULT_STOPPED
=
3
;
// The process was stopped externally (e.g., via
// drush migrate-stop)
const
RESULT_FAILED
=
4
;
// The process had a fatal error
const
RESULT_SKIPPED
=
5
;
// Dependencies are unfulfilled - skip the process
const
RESULT_DISABLED
=
6
;
// This migration is disabled, skipping
const
RESULT_DISABLED
=
6
;
/**
* Returns the initialized source plugin.
*
* @return \Drupal\migrate\Plugin\MigrateSourceInterface
* The source plugin.
*/
public
function
getSourcePlugin
();
...
...
@@ -73,6 +123,7 @@ public function getProcessPlugins(array $process = NULL);
* Returns the initialized destination plugin.
*
* @return \Drupal\migrate\Plugin\MigrateDestinationInterface
* The destination plugin.
*/
public
function
getDestinationPlugin
();
...
...
@@ -80,6 +131,7 @@ public function getDestinationPlugin();
* Returns the initialized id_map plugin.
*
* @return \Drupal\migrate\Plugin\MigrateIdMapInterface
* The ID map.
*/
public
function
getIdMap
();
...
...
@@ -91,6 +143,7 @@ public function getIdMap();
* imported.
*
* @return int
* A Unix timestamp representing the highwater mark.
*/
public
function
getHighwater
();
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment