public function Migration::getStatus in Drupal 9
Same name and namespace in other branches
- 8 core/modules/migrate/src/Plugin/Migration.php \Drupal\migrate\Plugin\Migration::getStatus()
- 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 479
Class
- Migration
- Defines the Migration plugin.
Namespace
Drupal\migrate\PluginCode
public function getStatus() {
return \Drupal::keyValue('migrate_status')
->get($this
->id(), static::STATUS_IDLE);
}