You are here

public function Synonym::setType in Search API Synonym 8

Sets the Synonym type.

Parameters

string $type: The Synonym type.

Return value

\Drupal\search_api_synonym\SynonymInterface The called Synonym entity.

Overrides SynonymInterface::setType

File

src/Entity/Synonym.php, line 72

Class

Synonym
Defines the Synonym entity.

Namespace

Drupal\search_api_synonym\Entity

Code

public function setType($type) {
  $this
    ->set('type', $type);
  return $this;
}