From 75215caabbb99f9e7988fe30939286ba11a1c711 Mon Sep 17 00:00:00 2001 From: dannylamb Date: Thu, 15 Jul 2021 11:08:21 -0300 Subject: [PATCH] Less gemini (#841) * Delete system.action.index_file_in_fedora.yml * Delete system.action.delete_file_from_fedora.yml * update hook --- .../system.action.delete_file_from_fedora.yml | 15 --------------- .../system.action.index_file_in_fedora.yml | 15 --------------- .../islandora_core_feature.install | 16 ++++++++++++++++ 3 files changed, 16 insertions(+), 30 deletions(-) delete mode 100644 modules/islandora_core_feature/config/install/system.action.delete_file_from_fedora.yml delete mode 100644 modules/islandora_core_feature/config/install/system.action.index_file_in_fedora.yml diff --git a/modules/islandora_core_feature/config/install/system.action.delete_file_from_fedora.yml b/modules/islandora_core_feature/config/install/system.action.delete_file_from_fedora.yml deleted file mode 100644 index d16b1524..00000000 --- a/modules/islandora_core_feature/config/install/system.action.delete_file_from_fedora.yml +++ /dev/null @@ -1,15 +0,0 @@ -langcode: en -status: true -dependencies: - enforced: - module: - - islandora_core_feature - module: - - islandora -id: delete_file_from_fedora -label: 'Delete Fedora File from Gemini' -type: file -plugin: emit_file_event -configuration: - queue: islandora-indexing-fcrepo-file-delete - event: Delete diff --git a/modules/islandora_core_feature/config/install/system.action.index_file_in_fedora.yml b/modules/islandora_core_feature/config/install/system.action.index_file_in_fedora.yml deleted file mode 100644 index 17776733..00000000 --- a/modules/islandora_core_feature/config/install/system.action.index_file_in_fedora.yml +++ /dev/null @@ -1,15 +0,0 @@ -langcode: en -status: true -dependencies: - enforced: - module: - - islandora_core_feature - module: - - islandora -id: index_file_in_fedora -label: 'Index Fedora File in Gemini' -type: file -plugin: emit_file_event -configuration: - queue: islandora-indexing-fcrepo-file - event: Update diff --git a/modules/islandora_core_feature/islandora_core_feature.install b/modules/islandora_core_feature/islandora_core_feature.install index 3585dafa..a8e23d3c 100644 --- a/modules/islandora_core_feature/islandora_core_feature.install +++ b/modules/islandora_core_feature/islandora_core_feature.install @@ -135,3 +135,19 @@ function islandora_core_feature_update_8001(&$sandbox) { ]); } } + +/** + * Delete actions that have to do with Gemini. + */ +function islandora_core_feature_update_8002() { + $config_factory = \Drupal::configFactory(); + $action = $config_factory->getEditable('system.action.index_file_in_fedora'); + if ($action) { + $action->delete(); + } + + $action = $config_factory->getEditable('system.action.delete_file_from_fedora'); + if ($action) { + $action->delete(); + } +}