You are here

public function AutocompletionConfiguration::setNoResultLabel in Search Autocomplete 8

Same name and namespace in other branches
  1. 2.x src/Entity/AutocompletionConfiguration.php \Drupal\search_autocomplete\Entity\AutocompletionConfiguration::setNoResultLabel()

Sets a label when no result are available.

Parameters

string $no_result_label: The label for "no result available" custom suggestion.

Overrides AutocompletionConfigurationInterface::setNoResultLabel

File

src/Entity/AutocompletionConfiguration.php, line 319

Class

AutocompletionConfiguration
Defines the autocompletion_configuration entity.

Namespace

Drupal\search_autocomplete\Entity

Code

public function setNoResultLabel($no_result_label) {
  $this->noResultLabel = $no_result_label;
}