diff --git a/composer.json b/composer.json index 517070544..278f3e1aa 100644 --- a/composer.json +++ b/composer.json @@ -47,6 +47,7 @@ "drupal/pathauto": "^1.8", "drupal/publication_date": "^2.0@beta", "drupal/rdf": "^2.0", + "drupal/readonly_field_widget": "^1.0", "drupal/redirect": "^1.6", "drupal/role_delegation": "^1.1", "drupal/scheduler": "^1.3", diff --git a/modules/helfi_react_search/helfi_react_search.install b/modules/helfi_react_search/helfi_react_search.install index a99a1710c..fa938b697 100644 --- a/modules/helfi_react_search/helfi_react_search.install +++ b/modules/helfi_react_search/helfi_react_search.install @@ -98,6 +98,9 @@ function helfi_react_search_update_9005() { * UHF-9613: Update events list field descriptions and translation. */ function helfi_react_search_update_9006() : void { + $module_installer = \Drupal::service('module_installer'); + $module_installer->install(['readonly_field_widget']); + // Make sure the configurations are correctly installed. \Drupal::service('helfi_platform_config.config_update_helper') ->update('helfi_react_search');