You are here

public function Migration::getStatus in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/migrate/src/Plugin/Migration.php \Drupal\migrate\Plugin\Migration::getStatus()
  2. 10 core/modules/migrate/src/Plugin/Migration.php \Drupal\migrate\Plugin\Migration::getStatus()

Get the current migration status.

Return value

int The current migration status. Defaults to STATUS_IDLE.

Overrides MigrationInterface::getStatus

1 call to Migration::getStatus()
Migration::getStatusLabel in core/modules/migrate/src/Plugin/Migration.php
Retrieve a label for the current status.

File

core/modules/migrate/src/Plugin/Migration.php, line 494

Class

Migration
Defines the Migration plugin.

Namespace

Drupal\migrate\Plugin

Code

public function getStatus() {
  return \Drupal::keyValue('migrate_status')
    ->get($this
    ->id(), static::STATUS_IDLE);
}