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

Issue #2491777: [Porting to D8] aws_cloud - Forms: TRIM everything about...

Issue #2491777: [Porting to D8] aws_cloud - Forms: TRIM everything about received values at AWS config form
parent e92abf33
No related branches found
No related tags found
No related merge requests found
<?php
// Updated by yas 2016/10/31
// Updated by yas 2016/10/21
// Updated by yas 2016/07/05
// Updated by yas 2016/07/03
......@@ -202,8 +203,15 @@ class ConfigEditForm extends CloudConfigForm {
? trim($form['cloud_context']['#value'])
: $entity->cloud_context();
// @TODO: TRIM everything about received variables
// Write code here
$entity->set('api_version' , trim($form['api_version']['#value']));
$entity->set('endpoint' , trim($form['endpoint']['#value']));
$entity->set('region' , trim($form['region']['#value']));
$entity->set('aws_access_key' , trim($form['aws_access_key']['#value']));
$entity->set('aws_secret_key' , trim($form['aws_secret_key']['#value']));
$entity->set('user_id' , trim($form['user_id']['#value']));
$entity->set('image_upload_url' , trim($form['image_upload_url']['#value']));
$entity->set('image_register_url', trim($form['image_register_url']['#value']));
$entity->set('certificate' , trim($form['certificate']['#value']));
// When performing action - add.
if ($entity->isNew() && isset($cloud_context)) {
......@@ -257,3 +265,4 @@ class ConfigEditForm extends CloudConfigForm {
}
}
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