You are here

public function Migration::getStatusLabel 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::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/Entity/Migration.php, line 429
Contains \Drupal\migrate\Entity\Migration.

Class

Migration
Defines the Migration entity.

Namespace

Drupal\migrate\Entity

Code

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