diff --git a/search_api_pantheon.module b/search_api_pantheon.module index 25d8c7a..6a470fb 100644 --- a/search_api_pantheon.module +++ b/search_api_pantheon.module @@ -4,6 +4,9 @@ * @file */ +use Drupal\Core\Messenger\MessengerInterface; +use Drupal\search_api_pantheon\ReloadInterface; + 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'; @@ -14,9 +17,9 @@ function search_api_pantheon_form_submit($form, &$form_state) { $rl = \Drupal::service("search_api_pantheon.reload"); $messenger = \Drupal::service("messenger")->get("search_api_pantheon"); if ( - !$rl instanceof \Drupal\search_api_pantheon\ReloadInterface - || !$messenger instanceof \Drupal\Core\Messenger\MessengerInterface - ) { + !$rl instanceof + ReloadInterface || !$messenger instanceof + MessengerInterface) { $this->logger->error('Service failure. Service not found.'); return; }