You are here

public function SynonymInterface::setSynonyms in Search API Synonym 8

Sets the synonyms to the word.

Parameters

string $synonyms: The synonyms.

Return value

\Drupal\search_api_synonym\SynonymInterface The called Synonym entity.

1 method overrides SynonymInterface::setSynonyms()
Synonym::setSynonyms in src/Entity/Synonym.php
Sets the synonyms to the word.

File

src/SynonymInterface.php, line 83

Class

SynonymInterface
Provides an interface for defining Synonym entities.

Namespace

Drupal\search_api_synonym

Code

public function setSynonyms($synonyms);