You are here

public function Migration::getStatus in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/migrate/src/Entity/Migration.php \Drupal\migrate\Entity\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/Entity/Migration.php
Retrieve a label for the current status.

File

core/modules/migrate/src/Entity/Migration.php, line 422
Contains \Drupal\migrate\Entity\Migration.

Class

Migration
Defines the Migration entity.

Namespace

Drupal\migrate\Entity

Code

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