Browse Source

check for fedora key in flysystem

d9_islandora
ezoller 4 years ago
parent
commit
3c3262bd68
  1. 6
      src/EventGenerator/EventGenerator.php

6
src/EventGenerator/EventGenerator.php

@ -92,8 +92,10 @@ class EventGenerator implements EventGeneratorInterface {
];
$flysystem_config = Settings::get('flysystem');
$fedora_url = $flysystem_config['fedora']['config']['root'];
$event["target"] = $fedora_url;
if (array_key_exists('fedora', $flysystem_config)) {
$fedora_url = $flysystem_config['fedora']['config']['root'];
$event["target"] = $fedora_url;
}
$entity_type = $entity->getEntityTypeId();
if ($data["event"] == "Generate Derivative") {

Loading…
Cancel
Save