Skip to content

Commit

Permalink
Issue #325 setting up solr schema and installing module.
Browse files Browse the repository at this point in the history
  • Loading branch information
mariacha committed Oct 23, 2024
1 parent 757e524 commit 3cfcf87
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
status: true
dependencies: { }
id: solr_schema_problems
label: 'Solr schema problems'
types:
search_api: search_api
levels: { }
message: DOCS_AND_FREQS_AND_POSITIONS
1 change: 1 addition & 0 deletions modules/wri_admin/wri_admin.info.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ dependencies:
- ctools_views
- diff
- dblog
- dblog_persistent
- ds
- ds_extras
- editor
Expand Down
11 changes: 11 additions & 0 deletions modules/wri_admin/wri_admin.install
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,14 @@ function wri_admin_update_10301() {
$role1->revokePermission('administer blocks');
$role1->save();
}

/**
* Enable the module dblog_persistent and pulls config.
*/
function wri_admin_update_10302() {
$moduleHandler = \Drupal::service('module_handler');
if (!$moduleHandler->moduleExists('dblog_persistent')) {
\Drupal::service('module_installer')->install(['dblog_persistent'], TRUE);
}
\Drupal::service('distro_helper.updates')->installConfig('dblog_persistent.channel.solr_schema_problems', 'wri_admin', 'install');
}

0 comments on commit 3cfcf87

Please sign in to comment.