You are here

protected function LiveResults::isHighlightingEnabled in Search API Autocomplete 8

Checks whether highlighting is configured and available.

Return value

bool TRUE if highlighting is configured and available, FALSE otherwise.

1 call to LiveResults::isHighlightingEnabled()
LiveResults::getAutocompleteSuggestions in src/Plugin/search_api_autocomplete/suggester/LiveResults.php
Retrieves autocompletion suggestions for some user input.

File

src/Plugin/search_api_autocomplete/suggester/LiveResults.php, line 261

Class

LiveResults
Provides a suggester plugin that displays live results.

Namespace

Drupal\search_api_autocomplete\Plugin\search_api_autocomplete\suggester

Code

protected function isHighlightingEnabled() : bool {
  return $this->configuration['highlight']['enabled'] && $this->configuration['highlight']['field'] && $this
    ->isHighlightingAvailable();
}