You are here

public function Migration::getStatusLabel in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/migrate/src/Plugin/Migration.php \Drupal\migrate\Plugin\Migration::getStatusLabel()
  2. 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 563

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