diff --git a/src/CantoRepository.php b/src/CantoRepository.php
index aa2e14f..94b1cdf 100644
--- a/src/CantoRepository.php
+++ b/src/CantoRepository.php
@@ -2,6 +2,8 @@
 
 namespace Drupal\canto;
 
+use Drupal\Component\Utility\DeprecationHelper;
+use Drupal\Core\Database\Statement\FetchAs;
 use Drupal\Core\Database\Connection;
 use Drupal\Core\Messenger\MessengerInterface;
 use Drupal\Core\Messenger\MessengerTrait;
@@ -99,7 +101,7 @@ class CantoRepository {
     }
 
     // Fetch as an associative array.
-    $entries = $select->execute()->fetchAll(\PDO::FETCH_ASSOC);
+    $entries = DeprecationHelper::backwardsCompatibleCall(\Drupal::VERSION, '11.2.0', fn() => $select->execute()->fetchAll(FetchAs::Associative), fn() => $select->execute()->fetchAll(\PDO::FETCH_ASSOC));
     return $entries;
 
   }
diff --git a/src/Plugin/media/Source/CantodamAsset.php b/src/Plugin/media/Source/CantodamAsset.php
index 51b3b28..3bc6da9 100644
--- a/src/Plugin/media/Source/CantodamAsset.php
+++ b/src/Plugin/media/Source/CantodamAsset.php
@@ -91,7 +91,7 @@ class CantodamAsset extends MediaSourceBase {
    */
   public function buildConfigurationForm(array $form, FormStateInterface $form_state) {
     // Fieldset with configuration options not needed.
-    hide($form);
+    $form['#printed'] = true;
     return $form;
   }
 
