From 629226c396c51d49038a4d93f449e34454a011bf Mon Sep 17 00:00:00 2001 From: Rosie Le Faive Date: Wed, 15 Nov 2023 14:17:15 -0400 Subject: [PATCH] Add COI integration to settings form. (#57) * Add COI integration to settings form. * Tabs to spaces. * Composer suggest COI module. --- composer.json | 3 +++ src/Form/OpenSeadragonSettingsForm.php | 3 +++ 2 files changed, 6 insertions(+) diff --git a/composer.json b/composer.json index 8d02970..66819d1 100644 --- a/composer.json +++ b/composer.json @@ -16,6 +16,9 @@ "conflict": { "drupal/core": "<9.1" }, + "suggest": { + "drupal/coi": "Some configuration fields work with Config Override Inspector." + }, "authors": [ { "name": "Islandora Foundation", diff --git a/src/Form/OpenSeadragonSettingsForm.php b/src/Form/OpenSeadragonSettingsForm.php index 0641d5a..88bb4b0 100644 --- a/src/Form/OpenSeadragonSettingsForm.php +++ b/src/Form/OpenSeadragonSettingsForm.php @@ -96,6 +96,9 @@ public function buildForm(array $form, FormStateInterface $form_state) { '#default_value' => $this->seadragonConfig->getIiifAddress(), '#required' => TRUE, '#description' => t('Please enter the image server location without trailing slash. eg: http://www.example.org/iiif/2.'), + '#config' => [ + 'key' => 'openseadragon.settings:iiif_server', + ], ], 'manifest_view' => [ '#type' => 'select',