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

Issue #2736821: aws_cloud - Refactored

parent 4726cf0c
Branches 9.0.x
No related tags found
No related merge requests found
...@@ -47,7 +47,11 @@ class InstanceLaunchForm extends CloudContentForm { ...@@ -47,7 +47,11 @@ class InstanceLaunchForm extends CloudContentForm {
} }
else { else {
return array('#markup' => $this->t("Error - Not found: AWS Cloud provider '$cloud_context'.")); $status = 'error';
$message = $this->t("Not found: AWS Cloud provider '@cloud_context'", array(
'@cloud_context' => $cloud_context,
));
drupal_set_message($message, $status);
} }
/* @var $entity \Drupal\aws_cloud\Entity\Ec2\Instance\Entity\Instance */ /* @var $entity \Drupal\aws_cloud\Entity\Ec2\Instance\Entity\Instance */
......
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