You are here

public function Synonym::getType in Search API Synonym 8

Gets the Synonym type.

Return value

string Type of the Synonym.

Overrides SynonymInterface::getType

File

src/Entity/Synonym.php, line 65

Class

Synonym
Defines the Synonym entity.

Namespace

Drupal\search_api_synonym\Entity

Code

public function getType() {
  return $this
    ->get('type')->value;
}