function Migration::getStatus

Same name 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()
  3. 11.x core/modules/migrate/src/Plugin/Migration.php \Drupal\migrate\Plugin\Migration::getStatus()

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);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.