You are here

protected function DidYouMeanSpellCheck::getSuggestionLabel in Search API Spellcheck 8.3

Gets the suggestion label.

Return value

\Drupal\Core\StringTranslation\TranslatableMarkup The suggestion label translated.

1 call to DidYouMeanSpellCheck::getSuggestionLabel()
DidYouMeanSpellCheck::render in src/Plugin/views/area/DidYouMeanSpellCheck.php
Render the area.
1 method overrides DidYouMeanSpellCheck::getSuggestionLabel()
SuggestionsSpellCheck::getSuggestionLabel in src/Plugin/views/area/SuggestionsSpellCheck.php
Gets the suggestion label.

File

src/Plugin/views/area/DidYouMeanSpellCheck.php, line 168

Class

DidYouMeanSpellCheck
Provides an area for messages.

Namespace

Drupal\search_api_spellcheck\Plugin\views\area

Code

protected function getSuggestionLabel() {
  return $this
    ->t('Did you mean:');
}