Skip to content

Commit

Permalink
remove plugin dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
stovak authored and pwtyler committed Nov 14, 2024
1 parent 0fa29c5 commit a81ea3d
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 46 deletions.
1 change: 0 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@
"ext-curl": "*",
"ext-json": "*",
"ext-zip": "*",
"drupal/pluginformalter": "^1",
"drupal/search_api_solr": "^4.3",
"guzzlehttp/guzzle": "^6.5.7|^7.5",
"http-interop/http-factory-guzzle": "^1.0",
Expand Down
11 changes: 11 additions & 0 deletions search_api_pantheon.module
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,14 @@
/**
* @file
*/

function search_api_pantheon_form_alter(&$form, &$form_state, $form_id) {
if ($form_id == 'solr_reload_core_form') {
$form['#submit'][] = 'search_api_pantheon_form_submit';
}
}

function search_api_pantheon_form_submit($form, &$form_state) {
$rl = \Drupal::service("search_api_pantheon.reload");
$rl->reloadServer();
}
45 changes: 0 additions & 45 deletions src/Plugin/FormAlter/SolrReloadFormAlter.php

This file was deleted.

0 comments on commit a81ea3d

Please sign in to comment.