3 namespace Drupal\migrate;
5 use Drupal\migrate\Plugin\MigrationInterface;
7 interface MigrateExecutableInterface {
10 * Performs an import operation - migrate items from source to destination.
12 public function import();
15 * Performs a rollback operation - remove previously-imported items.
17 public function rollback();
22 * @param \Drupal\migrate\Row $row
23 * The $row to be processed.
24 * @param array $process
25 * (optional) A process pipeline configuration. If not set, the top level
26 * process configuration in the migration entity is used.
28 * (optional) Initial value of the pipeline for the first destination.
29 * Usually setting this is not necessary as $process typically starts with
30 * a 'get'. This is useful only when the $process contains a single
31 * destination and needs to access a value outside of the source. See
32 * \Drupal\migrate\Plugin\migrate\process\Iterator::transformKey for an
35 * @throws \Drupal\migrate\MigrateException
37 public function processRow(Row $row, array $process = NULL, $value = NULL);
40 * Passes messages through to the map class.
42 * @param string $message
43 * The message to record.
45 * (optional) Message severity (defaults to MESSAGE_ERROR).
47 public function saveMessage($message, $level = MigrationInterface::MESSAGE_ERROR);