Browse Source

Less gemini (#841)

* Delete system.action.index_file_in_fedora.yml

* Delete system.action.delete_file_from_fedora.yml

* update hook
pull/843/head
dannylamb 4 years ago committed by GitHub
parent
commit
75215caabb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 15
      modules/islandora_core_feature/config/install/system.action.delete_file_from_fedora.yml
  2. 15
      modules/islandora_core_feature/config/install/system.action.index_file_in_fedora.yml
  3. 16
      modules/islandora_core_feature/islandora_core_feature.install

15
modules/islandora_core_feature/config/install/system.action.delete_file_from_fedora.yml

@ -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

15
modules/islandora_core_feature/config/install/system.action.index_file_in_fedora.yml

@ -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

16
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();
}
}

Loading…
Cancel
Save