Skip to content
Snippets Groups Projects

Issue #3443311 by yas: Comply with Drupal coding standards (32) (Deprecated...

Merged Yas Naoi requested to merge issue/cloud-3443311:3443311-comply-with-drupal into 7.x
4 files
+ 10
6
Compare changes
  • Side-by-side
  • Inline
Files
4
@@ -36,6 +36,7 @@ use Drupal\Core\Entity\EntityMalformedException;
use Drupal\Core\Entity\EntityStorageException;
use Drupal\Core\Entity\Exception\UndefinedLinkTemplateException;
use Drupal\Core\Entity\RevisionableStorageInterface;
use Drupal\Core\File\FileExists;
use Drupal\Core\File\FileSystemInterface;
use Drupal\Core\Form\FormStateInterface;
use Drupal\Core\Link;
@@ -5662,7 +5663,7 @@ EOF;
$credential_file = aws_cloud_ini_file_path($cloud_context);
$credential_directory = aws_cloud_ini_directory();
if (\Drupal::service('file_system')->prepareDirectory($credential_directory, FileSystemInterface::CREATE_DIRECTORY | FileSystemInterface::MODIFY_PERMISSIONS)) {
\Drupal::service('file_system')->saveData($access_data, $credential_file, FileSystemInterface::EXISTS_REPLACE);
\Drupal::service('file_system')->saveData($access_data, $credential_file, FileExists::Replace);
}
}
Loading