You are here

public function Migration::getStatusLabel in Drupal 8

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

Retrieve a label for the current status.

Return value

string User-friendly string corresponding to a STATUS_ constant.

Overrides MigrationInterface::getStatusLabel

File

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

Class

Migration
Defines the Migration plugin.

Namespace

Drupal\migrate\Plugin

Code

public function getStatusLabel() {
  $status = $this
    ->getStatus();
  if (isset($this->statusLabels[$status])) {
    return $this->statusLabels[$status];
  }
  else {
    return '';
  }
}