Skip to content
Snippets Groups Projects
Commit c5c3d58e authored by Yas Naoi's avatar Yas Naoi
Browse files

Issue #3294189 by yas, Xiaohua Guan: Fix an error using $this when not in...

Issue #3294189 by yas, Xiaohua Guan: Fix an error using $this when not in object context in cloud_cluster.module
parent 0798cf71
No related branches found
No related tags found
No related merge requests found
......@@ -800,10 +800,10 @@ function cloud_cluster_cron(): void {
$deployment_type = $site->getCloudLaunchTemplate()->field_deployment_type->value;
$service_name = "$deployment_type.cloud_orchestrator_manager";
if (!\Drupal::hasService($service_name)) {
$message = $this->t('The cloud orchestrator manager for %type could not be found.', [
$message = t('The cloud orchestrator manager for %type could not be found.', [
'%type' => $deployment_type,
]);
$this->messenger->addError($message);
\Drupal::messenger()->addError($message);
continue;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment