From b19a9189763c00734641f3e21b1030990c053966 Mon Sep 17 00:00:00 2001 From: Thierry Dallacroce Date: Thu, 9 Jul 2020 15:21:35 -0700 Subject: [PATCH] Fix call to deprecated constant FILE_CREATE_DIRECTORY --- modules/harvest/src/Utility/FileHelperInterface.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/harvest/src/Utility/FileHelperInterface.php b/modules/harvest/src/Utility/FileHelperInterface.php index bd5ae8d9b8..ab6b1be829 100644 --- a/modules/harvest/src/Utility/FileHelperInterface.php +++ b/modules/harvest/src/Utility/FileHelperInterface.php @@ -2,6 +2,8 @@ namespace Drupal\harvest\Utility; +use Drupal\Core\File\FileSystemInterface; + /** * Interface. */ @@ -28,7 +30,7 @@ public function filePutContents($path, $content); /** * Public. */ - public function prepareDir(&$directory, $options = FILE_CREATE_DIRECTORY); + public function prepareDir(&$directory, $options = FileSystemInterface::CREATE_DIRECTORY); /** * Public.