public function Migration::getStatusLabel in Drupal 10
Same name and namespace in other branches
- 8 core/modules/migrate/src/Plugin/Migration.php \Drupal\migrate\Plugin\Migration::getStatusLabel()
- 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\PluginCode
public function getStatusLabel() {
$status = $this
->getStatus();
if (isset($this->statusLabels[$status])) {
return $this->statusLabels[$status];
}
else {
return '';
}
}