public function Synonym::isActive in Search API Synonym 8
Returns the Synonym active status indicator.
Not active synonyms are not used by the search engine.
Return value
bool TRUE if the Synonym is active.
Overrides SynonymInterface::isActive
File
- src/
Entity/ Synonym.php, line 164
Class
- Synonym
- Defines the Synonym entity.
Namespace
Drupal\search_api_synonym\EntityCode
public function isActive() {
return (bool) $this
->get('status');
}