From 1083d928ccc9e7810660cc49b5412602e87e59cd Mon Sep 17 00:00:00 2001 From: ezoller Date: Fri, 11 Dec 2020 19:23:00 +0000 Subject: [PATCH] use this instead of Drupal:: --- .../src/Plugin/Action/GenerateImageDerivativeFile.php | 2 +- .../src/Plugin/Action/GenerateOCRDerivativeFile.php | 2 +- src/Plugin/Action/AbstractGenerateDerivative.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/islandora_image/src/Plugin/Action/GenerateImageDerivativeFile.php b/modules/islandora_image/src/Plugin/Action/GenerateImageDerivativeFile.php index 0228b602..88bd01aa 100644 --- a/modules/islandora_image/src/Plugin/Action/GenerateImageDerivativeFile.php +++ b/modules/islandora_image/src/Plugin/Action/GenerateImageDerivativeFile.php @@ -25,7 +25,7 @@ class GenerateImageDerivativeFile extends AbstractGenerateDerivativeMediaFile { $config['mimetype'] = 'application/xml'; $config['queue'] = 'islandora-connector-houdini'; $config['destination_media_type'] = 'file'; - $config['scheme'] = \Drupal::config('system.file')->get('default_scheme'); + $config['scheme'] = $this->config('system.file')->get('default_scheme'); return $config; } diff --git a/modules/islandora_text_extraction/src/Plugin/Action/GenerateOCRDerivativeFile.php b/modules/islandora_text_extraction/src/Plugin/Action/GenerateOCRDerivativeFile.php index 3e13aca9..1e6bcbc0 100644 --- a/modules/islandora_text_extraction/src/Plugin/Action/GenerateOCRDerivativeFile.php +++ b/modules/islandora_text_extraction/src/Plugin/Action/GenerateOCRDerivativeFile.php @@ -27,7 +27,7 @@ class GenerateOCRDerivativeFile extends AbstractGenerateDerivativeMediaFile { $config['mimetype'] = 'application/xml'; $config['queue'] = 'islandora-connector-ocr'; $config['destination_media_type'] = 'file'; - $config['scheme'] = \Drupal::config('system.file')->get('default_scheme'); + $config['scheme'] = $this->config('system.file')->get('default_scheme'); $config['destination_text_field_name'] = ''; return $config; } diff --git a/src/Plugin/Action/AbstractGenerateDerivative.php b/src/Plugin/Action/AbstractGenerateDerivative.php index fb83c082..e19089cf 100644 --- a/src/Plugin/Action/AbstractGenerateDerivative.php +++ b/src/Plugin/Action/AbstractGenerateDerivative.php @@ -141,7 +141,7 @@ class AbstractGenerateDerivative extends EmitEvent { 'mimetype' => '', 'args' => '', 'destination_media_type' => '', - 'scheme' => \Drupal::config('system.file')->get('default_scheme'), + 'scheme' => $this->config->get('default_scheme'), 'path' => '[date:custom:Y]-[date:custom:m]/[node:nid].bin', ]; }