Skip to content
Snippets Groups Projects

Fixed Call to undefined method

1 file
+ 3
1
Compare changes
  • Side-by-side
  • Inline
@@ -4,6 +4,7 @@ namespace Drupal\search_api_solr_autocomplete\Plugin\search_api_autocomplete\sug
use Drupal\Core\Form\FormStateInterface;
use Drupal\Core\Language\LanguageInterface;
use Drupal\Core\Logger\LoggerChannelTrait;
use Drupal\Core\Plugin\PluginFormInterface;
use Drupal\search_api\Plugin\PluginFormTrait;
use Drupal\search_api\Query\QueryInterface;
@@ -36,6 +37,7 @@ class Suggester extends SuggesterPluginBase implements PluginFormInterface {
use PluginFormTrait;
use BackendTrait;
use SolrAutocompleteBackendTrait;
use LoggerChannelTrait;
/**
* {@inheritdoc}
@@ -184,7 +186,7 @@ class Suggester extends SuggesterPluginBase implements PluginFormInterface {
$this->filterDuplicateAutocompleteSuggestions($suggestions);
}
catch (SearchApiException $e) {
$this->logException($e);
$this->getLogger('search_api_solr_autocomplete')->error($e->getMessage());
}
}
Loading